Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bms/src/Can.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include <stdint.h>

#include "mbed.h"

// SIDs From Accumulator
constexpr uint32_t kFuncIdHeartBeatAcc = 0x701;
constexpr uint32_t kFuncIdCellStartup = 0x420;
Expand Down Expand Up @@ -48,7 +50,7 @@ CANMessage BMSVoltageMessage (uint8_t row, uint16_t * voltages) {
uint8_t data[8];
for (int i = 0; i < 8; i += 2) {
data[i] = voltages[i/2] >> 8;
data[++i] = voltages [i/2];
data[i + 1] = voltages [i/2];
}
return CANMessage(kFuncIdCellVoltage[row], data);
}
Expand Down