mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 04:14:07 +08:00
mc_pos_ctrl: Remove gear intialisation
- Handled in the flight task
This commit is contained in:
parent
1412e0494c
commit
2f7c8569cb
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user