mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 13:27:35 +08:00
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:
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:
|
||||
|
||||
Reference in New Issue
Block a user