2016-02-26 11:41:03 -04:00
|
|
|
# Main state, i.e. what user wants. Controlled by RC or from ground station via telemetry link.
|
2018-08-06 21:30:05 -03:00
|
|
|
uint64 timestamp # time since system start (microseconds)
|
|
|
|
|
2021-03-03 20:27:56 -04:00
|
|
|
uint8 MAIN_STATE_MANUAL = 0
|
|
|
|
uint8 MAIN_STATE_ALTCTL = 1
|
|
|
|
uint8 MAIN_STATE_POSCTL = 2
|
|
|
|
uint8 MAIN_STATE_AUTO_MISSION = 3
|
|
|
|
uint8 MAIN_STATE_AUTO_LOITER = 4
|
|
|
|
uint8 MAIN_STATE_AUTO_RTL = 5
|
|
|
|
uint8 MAIN_STATE_ACRO = 6
|
|
|
|
uint8 MAIN_STATE_OFFBOARD = 7
|
|
|
|
uint8 MAIN_STATE_STAB = 8
|
|
|
|
# LEGACY RATTITUDE = 9
|
|
|
|
uint8 MAIN_STATE_AUTO_TAKEOFF = 10
|
|
|
|
uint8 MAIN_STATE_AUTO_LAND = 11
|
2016-02-26 12:41:35 -04:00
|
|
|
uint8 MAIN_STATE_AUTO_FOLLOW_TARGET = 12
|
2021-03-03 20:27:56 -04:00
|
|
|
uint8 MAIN_STATE_AUTO_PRECLAND = 13
|
|
|
|
uint8 MAIN_STATE_ORBIT = 14
|
|
|
|
uint8 MAIN_STATE_MAX = 15
|
2016-02-26 11:41:03 -04:00
|
|
|
|
2021-05-06 10:27:51 -03:00
|
|
|
uint8 main_state
|
2021-01-22 11:31:32 -04:00
|
|
|
|
|
|
|
uint16 main_state_changes
|