TECS: add flight_phase field in tecs_status (Level, Climb, Descend)

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2021-11-25 09:50:28 +01:00
parent e76734fa5e
commit 99e1e9deac
3 changed files with 47 additions and 0 deletions
+6
View File
@@ -42,3 +42,9 @@ float32 throttle_sp
float32 pitch_sp_rad
uint8 mode
uint8 flight_phase
uint8 TECS_FLIGHT_PHASE_LEVEL = 0 # In level flight (no altitude setpoint change)
uint8 TECS_FLIGHT_PHASE_CLIMB = 1 # Climb is triggered (altitude setpoint is increasing)
uint8 TECS_FLIGHT_PHASE_DESCEND = 2 # Descend is triggered (altitude setpoint is descreasing)