* squash all PR commits for easy rebase
* merged all panda rx can into one message
* fix buffers in can_send
* more cleanup and minor fixes
* fix even more stuff
* fix non-allocated send buffer
* make connecting more robust
* fix bus offset
* fix controls_mismatch?
* simplify mismatch check
* C++ style struct
* fix connect loop
* update ref
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 585c16cd2a
* alert when update fails more than 10 times
* bring over offroad alert refactor from other branch
* and we have tests
* use it in snapshot
* bump apk
* don't show exceptions on release branches
* only write when changed
* why does delete use so much cpu
* clean that up
* little more
old-commit-hash: 8e63f06540
* Battery protection
If your car battery voltage is lower than 0% switch off charging to stop the Eon from damaging the 12v car battery. Leaving you with a car that can not start but has a fully charged eon ;-)
* add rbiasini comment && !ignition
* Update Offroad_ChargeDisabled with voltage low
* simplify alert
* non-temporal hysteresis from @rbiasini
And up the start charge limit to 12v. i.e. 50% car battery voltage
* once battery power recovers to 11.500 volts charge
This leaves 1v inbetween for any fluctuations that could occur.
* fix indent
* Fix indent of whole block
It looks like sometimes when you copy and paste into the github web interface some white spacing gets added or removed. BE AWARE!
old-commit-hash: 02c4ade948