fw att+pos ctrl: use enum for flaps configs

This commit is contained in:
Thomas Stastny
2018-07-08 23:15:01 +02:00
committed by Lorenz Meier
parent 0c3399433d
commit 8a7919bcb6
3 changed files with 13 additions and 8 deletions

View File

@@ -20,7 +20,10 @@ bool yaw_reset_integral # Reset yaw integral part (navigation logic change)
bool fw_control_yaw # control heading with rudder (used for auto takeoff on runway)
bool disable_mc_yaw_control # control yaw for mc (used for vtol weather-vane mode)
int8 apply_flaps # 0 = no flaps, 1 = landing flaps setting, 2 = take-off flaps setting
uint8 apply_flaps # flap config specifier
uint8 FLAPS_OFF = 0 # no flaps
uint8 FLAPS_LAND = 1 # landing config flaps
uint8 FLAPS_TAKEOFF = 2 # take-off config flaps
float32 landing_gear