FlightTask: apply gear switch depending on task

This commit is contained in:
Dennis Mannhart
2018-04-27 10:38:25 +02:00
committed by Lorenz Meier
parent c637ccb65f
commit 547cdc051c
6 changed files with 52 additions and 5 deletions

View File

@@ -81,5 +81,5 @@ void FlightTask::_setDefaultConstraints()
_constraints.speed_up = MPC_Z_VEL_MAX_UP.get();
_constraints.speed_down = MPC_Z_VEL_MAX_DN.get();
_constraints.tilt = math::radians(MPC_TILTMAX_AIR.get());
_constraints.landing_gear_up = false;
_constraints.landing_gear = vehicle_constraints_s::GEAR_KEEP;
}