added delay for CAN

This commit is contained in:
2024-06-02 23:06:07 +03:00
parent ad21577cbb
commit e48b87a11e
4 changed files with 16 additions and 7 deletions

View File

@ -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: