added delay for CAN
This commit is contained in:
@ -11,9 +11,9 @@ void sm_init(){
|
||||
}
|
||||
|
||||
void sm_update(){
|
||||
RELAY_BAT_SIDE_VOLTAGE = mV_from_ADBMS6830(module.auxVoltages[0]);
|
||||
RELAY_ESC_SIDE_VOLTAGE = mV_from_ADBMS6830(module.auxVoltages[1]);
|
||||
CURRENT_MEASUREMENT = mV_from_ADBMS6830(module.auxVoltages[2]);
|
||||
RELAY_BAT_SIDE_VOLTAGE = module.auxVoltages[0] * 11.989;
|
||||
RELAY_ESC_SIDE_VOLTAGE = module.auxVoltages[1] * 11.989;
|
||||
CURRENT_MEASUREMENT = module.auxVoltages[2] ;
|
||||
|
||||
switch (state.current_state) {
|
||||
case STATE_INACTIVE:
|
||||
|
||||
Reference in New Issue
Block a user