Browse Source

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>
main
RomanBapst 3 years ago committed by Matthias Grob
parent
commit
42cd0b4ce0
  1. 5
      src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp

5
src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp

@ -146,11 +146,8 @@ bool FlightTaskAuto::update() @@ -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:

Loading…
Cancel
Save