mc_pos_ctrl: Remove gear intialisation

- Handled in the flight task
This commit is contained in:
Simone Guscetti 2018-11-07 16:15:53 +01:00 committed by Dennis Mannhart
parent 1412e0494c
commit 2f7c8569cb

View File

@ -733,7 +733,6 @@ MulticopterPositionControl::run()
setpoint.vx = setpoint.vy = setpoint.vz = NAN;
setpoint.yawspeed = NAN;
setpoint.yaw = _states.yaw;
gear.landing_gear = landing_gear_s::GEAR_KEEP;
// reactivate the task which will reset the setpoint to current state
_flight_tasks.reActivate();
}