void flight_logic_init(void) { switch (flight_mode) { case MODE_MANUAL: man_logic_init(); break; case MODE_SAFE_AUTO: auto_logic_init(); break; case MODE_FULL_AUTO: auto_logic_init(); break; } }
void flight_logic_init(void) { ASSERT_ONCE(); sticks_init(); switch (flight_mode) { case MODE_MANUAL: man_logic_init(); break; case MODE_SAFE_AUTO: auto_logic_init(); break; case MODE_FULL_AUTO: auto_logic_init(); break; } }