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

Dependencies:   mbed CUER_CAN

History

Added charger and bms timeouts to the charger board CAN packet default tip

2017-09-12, by DasSidG [Tue, 12 Sep 2017 05:42:43 +0000] rev 12

Added charger and bms timeouts to the charger board CAN packet


CAN functionality now tested after refactoring, and checked to be fine.; Timeouts tested and are fine

2017-09-10, by DasSidG [Sun, 10 Sep 2017 11:33:19 +0000] rev 11

CAN functionality now tested after refactoring, and checked to be fine.; Timeouts tested and are fine


Removed unnecessary voltage error variable

2017-09-10, by DasSidG [Sun, 10 Sep 2017 11:17:54 +0000] rev 10

Removed unnecessary voltage error variable


Removed unnecessary using namespace CAN_Ids from charger.cpp

2017-09-10, by DasSidG [Sun, 10 Sep 2017 11:16:06 +0000] rev 9

Removed unnecessary using namespace CAN_Ids from charger.cpp


Added CAN_Init() function to init() in charger.cpp

2017-09-10, by DasSidG [Sun, 10 Sep 2017 11:15:09 +0000] rev 8

Added CAN_Init() function to init() in charger.cpp


Changed charging algorithm; Refactored code to move stuff out of charger.cpp and into other files

2017-09-10, by DasSidG [Sun, 10 Sep 2017 11:10:54 +0000] rev 7

Changed charging algorithm; Refactored code to move stuff out of charger.cpp and into other files


Switched to mbed library version 145 for consistency with the rest of the code

2017-07-30, by DasSidG [Sun, 30 Jul 2017 23:01:15 +0000] rev 6

Switched to mbed library version 145 for consistency with the rest of the code


Made it calculate the voltage error itself.; Made it reset the relevant part of the CAN buffer each time it reads it so that it uses fresh data each time; ; Ready for testing.

2017-07-30, by DasSidG [Sun, 30 Jul 2017 22:59:37 +0000] rev 5

Made it calculate the voltage error itself.; Made it reset the relevant part of the CAN buffer each time it reads it so that it uses fresh data each time; ; Ready for testing.


Tidied up code a bit, replaced 'waits' for CAN sending with callbacks

2017-07-27, by DasSidG [Thu, 27 Jul 2017 21:21:32 +0000] rev 4

Tidied up code a bit, replaced 'waits' for CAN sending with callbacks


Code is now theoretically finished; completely untested however.

2017-07-27, by DasSidG [Thu, 27 Jul 2017 21:00:52 +0000] rev 3

Code is now theoretically finished; completely untested however.