TECS: remove TECS_MODE enum and instead add descriptive boolean flag to tecs_status

New flag: underspeed_mode_enabled.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2023-07-13 11:18:54 +02:00
committed by Thomas Stastny
parent a6fcf7b48c
commit 8741a9784d
4 changed files with 3 additions and 35 deletions
+1 -4
View File
@@ -26,7 +26,4 @@ float32 throttle_sp # Current throttle setpoint [-]
float32 pitch_sp_rad # Current pitch setpoint [rad]
float32 throttle_trim # estimated throttle value [0,1] required to fly level at equivalent_airspeed_sp in the current atmospheric conditions
# TECS mode
uint8 mode
uint8 TECS_MODE_NORMAL = 0
uint8 TECS_MODE_UNDERSPEED = 1
bool underspeed_mode_enabled # System has detected a low airspeed and takes measures to avoid stalling the plane