Skip to content

Commit d69a11e

Browse files
committed
Changed CAN IDs to reflect motor controller IDs
1 parent efca91f commit d69a11e

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Diff for: bms/src/Can.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "mbed.h"
1010

1111
// SIDs From Accumulator
12-
constexpr uint32_t kTPDO_ACC_BOARD_State = 0x182;
12+
constexpr uint32_t kTPDO_ACC_BOARD_State = 0x183;
1313

1414
constexpr uint32_t kTPDO_ACC_BOARD_Temp_0 = 0x189;
1515
constexpr uint32_t kTPDO_ACC_BOARD_Temp_1 = 0x289;
@@ -21,7 +21,7 @@ constexpr uint32_t kTPDO_ACC_BOARD_Volt_1 = 0x288;
2121
constexpr uint32_t kTPDO_ACC_BOARD_Volt_2 = 0x388;
2222
constexpr uint32_t kTPDO_ACC_BOARD_Volt_3 = 0x488;
2323

24-
constexpr uint32_t kNMT_ACC_HEARTBEAT = 0x702;
24+
constexpr uint32_t kNMT_ACC_HEARTBEAT = 0x703;
2525
constexpr uint32_t kRPDO_MAX_CURRENTS = 0x286;
2626

2727
/* Bootup message */

Diff for: mainCANbus.dbc

+11-11
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ BO_ 3221225472 VECTOR__INDEPENDENT_SIG_MSG: 0 Vector__XXX
6363
SG_ Volt_Segment : 0|8@1+ (1,0) [0|0] "" Vector__XXX
6464
SG_ Temp_Segment : 0|8@1+ (1,0) [0|255] "" Vector__XXX
6565

66-
BO_ 386 TPDO_ACC_BOARD_State: 8 Vector__XXX
66+
BO_ 387 TPDO_ACC_BOARD_State: 8 Vector__XXX
6767
SG_ GLV_Voltage : 0|8@1+ (0.1,0) [0|25.5] "Volts" Vector__XXX
6868
SG_ TS_Voltage : 8|16@1+ (0.1,0) [0|6553.5] "Volts" Vector__XXX
6969
SG_ BMS_Fault : 24|1@1+ (1,0) [0|0] "" Vector__XXX
@@ -114,7 +114,7 @@ BO_ 1161 TPDO_ACC_BOARD_Temp_3: 8 Vector__XXX
114114
SG_ Seg3_TEMP_5 : 40|8@1- (1,0) [-128|127] "" Vector__XXX
115115
SG_ Seg3_TEMP_6 : 48|8@1- (1,0) [-128|127] "" Vector__XXX
116116

117-
BO_ 1794 NMT_ACC_HEARTBEAT: 8 Vector__XXX
117+
BO_ 1795 NMT_ACC_HEARTBEAT: 8 Vector__XXX
118118
SG_ Status : 0|8@1+ (1,0) [0|255] "" Vector__XXX
119119

120120
BO_ 644 TPDO_BSPD_BOARD_Brake: 8 Vector__XXX
@@ -184,7 +184,7 @@ BO_ 646 SME_RPDO_Max_Currents: 8 Vector__XXX
184184
SG_ SME_CURRLIM_DischargeCurrentLim : 16|16@1+ (1,0) [0|65535] "A" Vector__XXX
185185
SG_ SME_CURRLIM_UNUSED_INT_1 : 32|32@1+ (1,0) [0|0] "" Vector__XXX
186186

187-
BO_ 1153 SME_TPDO_Torque_speed: 8 Vector__XXX
187+
BO_ 1154 SME_TPDO_Torque_speed: 8 Vector__XXX
188188
SG_ SME_TRQSPD_SOC_Low_Traction : 32|1@1+ (1,0) [0|1] "" Vector__XXX
189189
SG_ SME_TRQSPD_SOC_Low_Hydraulic : 33|1@1+ (1,0) [0|1] "" Vector__XXX
190190
SG_ SME_TRQSPD_Reverse : 34|1@1+ (1,0) [0|1] "" Vector__XXX
@@ -205,7 +205,7 @@ BO_ 1153 SME_TPDO_Torque_speed: 8 Vector__XXX
205205
SG_ SME_TRQSPD_MotorFlags : 48|16@1+ (1,0) [0|65535] "" Vector__XXX
206206
SG_ SME_TRQSPD_Torque : 16|16@1- (1,0) [-32767|32767] "Q15" Vector__XXX
207207

208-
BO_ 1665 SME_TPDO_Temperature: 8 Vector__XXX
208+
BO_ 1666 SME_TPDO_Temperature: 8 Vector__XXX
209209
SG_ SME_TEMP_FaultLevel : 40|8@1+ (1,0) [0|255] "" Vector__XXX
210210
SG_ SME_TEMP_FaultCode : 32|8@1+ (1,0) [0|255] "" Vector__XXX
211211
SG_ SME_TEMP_DC_Bus_V : 16|16@1+ (0.1,0) [0|6553.5] "V" Vector__XXX
@@ -215,12 +215,12 @@ BO_ 1665 SME_TPDO_Temperature: 8 Vector__XXX
215215

216216

217217

218-
CM_ SG_ 386 BMS_Fault "Fault High";
219-
CM_ SG_ 386 BMS_Balancing "Balancing High";
220-
CM_ SG_ 386 Precharge_Done "Done High";
221-
CM_ SG_ 386 Charging "Charging High";
222-
CM_ SG_ 386 Fans_On "On High";
223-
CM_ SG_ 386 Shutdown_Closed "Closed High";
218+
CM_ SG_ 387 BMS_Fault "Fault High";
219+
CM_ SG_ 387 BMS_Balancing "Balancing High";
220+
CM_ SG_ 387 Precharge_Done "Done High";
221+
CM_ SG_ 387 Charging "Charging High";
222+
CM_ SG_ 387 Fans_On "On High";
223+
CM_ SG_ 387 Shutdown_Closed "Closed High";
224224
CM_ SG_ 644 Steering_Sensor "90 (left) to -90 (right)";
225225
BA_DEF_ BO_ "CANFD_BRS" ENUM "0","1";
226226
BA_DEF_ "BusType" STRING ;
@@ -231,5 +231,5 @@ BA_DEF_DEF_ "BusType" "";
231231
BA_DEF_DEF_ "ECU" "";
232232
BA_DEF_DEF_ "VFrameFormat" "StandardCAN";
233233
BA_ "BusType" "CAN FD";
234-
VAL_ 1794 Status 0 "Boot up" 4 "Stopped" 5 "Operational" 127 "Pre-operational" ;
234+
VAL_ 1795 Status 0 "Boot up" 4 "Stopped" 5 "Operational" 127 "Pre-operational" ;
235235

0 commit comments

Comments
 (0)