Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CUER_CAN DS1820 LTC2943 LTC6804 mbed
Fork of BMS_BMUCore_Max by
Diff: CANParserBMU.cpp
- Revision:
- 3:527790e4965a
- Parent:
- 1:51477fe4851b
- Child:
- 5:793afeef45dc
--- a/CANParserBMU.cpp Fri Dec 30 16:04:10 2016 +0000
+++ b/CANParserBMU.cpp Fri Dec 30 16:19:31 2016 +0000
@@ -125,9 +125,8 @@
msg.id = BMS_BASE_ID + BATTERY_VI_ID;
CAN_Data data;
- //TODO check the below lines
- // data.set_u32(0,batteryVoltage);
- //data.set_u32(1,batteryCurrent);
+ data.setLower_uLong(batteryVoltage);
+ data.setHigher_uLong(batteryCurrent);
for(int i=0; i<8; i++) {
msg.data[i] = data.get_u8(i);
