Code to run on the charger board (used to charge the car from the mains).

Dependencies:   mbed CUER_CAN

Revision:
12:77d493b3320b
Parent:
7:70cf5bff23f9
--- a/CANParserCharger.h	Sun Sep 10 11:33:19 2017 +0000
+++ b/CANParserCharger.h	Tue Sep 12 05:42:43 2017 +0000
@@ -31,7 +31,7 @@
 void CAN_Init();
 
 CANMessage generate_charger_control_msg(float _desired_voltage, float _desired_current, uint8_t _charger_control);
-CANMessage generate_charger_info_msg(float _charger_voltage, float _charger_current, uint8_t _charger_status);
+CANMessage generate_charger_info_msg(float _charger_voltage, float _charger_current, uint8_t _charger_status, bool _charger_timeout, bool _bms_timeout);
 CANMessage generate_charging_finished_msg(); //When this packet is received by the BMU, it causes the BMU to reset its SoC value to 100%
 
 //CAN stuff. Not that there are two sets because there are two separate CAN buses here; one to communicate with the charger, and one to communicate with the rest of the car (importantly the BMS).