mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 01:17:35 +08:00
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:
committed by
Matthias Grob
parent
b6af068f25
commit
e49b596edc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user