mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 18:53:34 +08:00
FlightTask: if not in air, reActivate the task which will set the setpoints to current
vehicle state.
This commit is contained in:
committed by
Daniel Agar
parent
1f0d559d65
commit
c3ba2687ac
@@ -692,6 +692,8 @@ MulticopterPositionControl::run()
|
||||
setpoint.yawspeed = NAN;
|
||||
setpoint.yaw = _states.yaw;
|
||||
constraints.landing_gear = vehicle_constraints_s::GEAR_KEEP;
|
||||
// reactivate the task which will reset the setpoint to current state
|
||||
_flight_tasks.reActivate();
|
||||
}
|
||||
|
||||
// limit altitude only if local position is valid
|
||||
|
||||
Reference in New Issue
Block a user