Skip to content

Commit 563c250

Browse files
committed
statemachine is working
1 parent 8aff053 commit 563c250

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Core/Src/u_statemachine.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void send_carstate_msg(void)
5050

5151
int init_statemachine(void) {
5252
PRINTLN_INFO("Ran init_statemachine().");
53+
cerberus_state.nero.home_mode = true;
5354
return U_SUCCESS;
5455
}
5556

@@ -125,9 +126,9 @@ static int transition_functional_state(func_state_t new_state)
125126
}
126127

127128
/* Only turn on motor if brakes engaged and shutdown is closed */
128-
// if (!brake_state || !is_shutdown_closed()) {
129-
// return 3;
130-
// }
129+
if (!brake_state || !is_shutdown_closed()) {
130+
return 3;
131+
}
131132
#endif
132133

133134
if (is_shutdown_closed()) {

0 commit comments

Comments
 (0)