Battery-Emulator
Battery-Emulator copied to clipboard
Update Pylon-CAN.cpp
- 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)
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
I will be in a position to test this in a day or two. @LevinSwe could you rebase, squash, and fix conflicts?
I tried to fix the conflict, think I did it! Now it's just code formatting next @LevinSwe !