Battery-Emulator icon indicating copy to clipboard operation
Battery-Emulator copied to clipboard

Update Pylon-CAN.cpp

Open LevinSwe opened this issue 9 months ago • 1 comments

  • Add function to byte-swap all 16bit values
  • Add function to enable 30k offset for currents
  • Add function to limit charge/discharge currents from User settings
  • Add status bits
  • Set default value for 12V lead-acid battery in KIA64 battery (yellow LED on startup sometimes)

LevinSwe avatar May 04 '24 20:05 LevinSwe

Battery Status might be wrong, its calling for "Balance-Request" in pylon.cpp, correct value; row 219 --> 0x01 row 221 --> 0x02 row 223 --> 0x03 -Then the comment in row 217 also is wrong

LevinSwe avatar May 05 '24 09:05 LevinSwe

I will be in a position to test this in a day or two. @LevinSwe could you rebase, squash, and fix conflicts?

smaresca avatar May 25 '24 13:05 smaresca

I tried to fix the conflict, think I did it! Now it's just code formatting next @LevinSwe !

dalathegreat avatar Jun 04 '24 15:06 dalathegreat