Broadcast SDC state
This commit is contained in:
parent
29b411e4af
commit
c43b6a3b6e
|
@ -21,7 +21,7 @@ void can_init(CAN_HandleTypeDef *handle) {
|
|||
|
||||
HAL_StatusTypeDef can_send_status() {
|
||||
uint8_t data[6];
|
||||
data[0] = ts_state.current_state;
|
||||
data[0] = ts_state.current_state | (sdc_closed << 7);
|
||||
data[1] = current_soc;
|
||||
ftcan_marshal_unsigned(&data[2], min_voltage, 2);
|
||||
ftcan_marshal_signed(&data[4], max_temp, 2);
|
||||
|
|
Loading…
Reference in New Issue