mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 13:53:33 +08:00
mc_pos_ctrl: Remove gear intialisation
- Handled in the flight task
This commit is contained in:
committed by
Dennis Mannhart
parent
1412e0494c
commit
2f7c8569cb
@@ -733,7 +733,6 @@ MulticopterPositionControl::run()
|
|||||||
setpoint.vx = setpoint.vy = setpoint.vz = NAN;
|
setpoint.vx = setpoint.vy = setpoint.vz = NAN;
|
||||||
setpoint.yawspeed = NAN;
|
setpoint.yawspeed = NAN;
|
||||||
setpoint.yaw = _states.yaw;
|
setpoint.yaw = _states.yaw;
|
||||||
gear.landing_gear = landing_gear_s::GEAR_KEEP;
|
|
||||||
// reactivate the task which will reset the setpoint to current state
|
// reactivate the task which will reset the setpoint to current state
|
||||||
_flight_tasks.reActivate();
|
_flight_tasks.reActivate();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user