commander: add desired main state

This is an intermediate solution to carry forward the initial state of
the mode slot. Basically, it allows that we start up in Stabilized but
switch to POSCTL as soon we have the required GPS.
This commit is contained in:
Julian Oes
2021-05-06 15:27:51 +02:00
committed by Matthias Grob
parent b6af068f25
commit e49b596edc
2 changed files with 31 additions and 1 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ uint8 MAIN_STATE_AUTO_PRECLAND = 13
uint8 MAIN_STATE_ORBIT = 14
uint8 MAIN_STATE_MAX = 15
uint8 main_state # main state machine
uint8 main_state
uint8 desired_main_state
uint16 main_state_changes