FlightTaskAuto: don't override landing gear state for takeoff

- this allows landing gear to retract automatically when doing a takeoff
and the vehicle is considered high enough

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2022-07-04 12:40:11 +03:00
committed by Matthias Grob
parent 42c562b748
commit 42cd0b4ce0
@@ -146,11 +146,8 @@ bool FlightTaskAuto::update()
_velocity_setpoint(2) = NAN;
break;
case WaypointType::takeoff:
// Takeoff is completely defined by target position
_gear.landing_gear = landing_gear_s::GEAR_DOWN;
// FALLTHROUGH
case WaypointType::takeoff:
case WaypointType::loiter:
case WaypointType::position:
default: