MITMotorsports/MY18

[VCU] TRANSITION_FATAL comes before TRANSITION_RECOVERABLE

sebLopezCot opened this issue · 1 comments

In state_error.c we have

void update_no_error_state(void) {
TRANSITION_FATAL();
TRANSITION_RECOVERABLE();
}

this is bad because if we reach both a fatal and a recoverable error, the state transition will happen to recoverable before the update loop body of the fatal transition will occur. This will result in not disabling the motors and closing contactors.