mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 03:53:34 +08:00
mc_pos_control: during transition set vel_sp to zero
This commit is contained in:
@@ -1604,8 +1604,11 @@ void MulticopterPositionControl::control_auto(float dt)
|
||||
}
|
||||
|
||||
} else {
|
||||
/* no waypoint, do nothing, setpoint was already reset */
|
||||
/* we are in idle */
|
||||
/* idle or triplet not valid, set velocity setpoint to zero */
|
||||
_vel_sp.zero();
|
||||
_run_pos_control = false;
|
||||
_run_alt_control = false;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user