mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
mc_pos_control: dont run alt-control when landing
This commit is contained in:
committed by
Lorenz Meier
parent
ef7ade52b1
commit
22733b1501
@@ -1123,6 +1123,7 @@ MulticopterPositionControl::control_non_manual(float dt)
|
||||
if (_pos_sp_triplet.current.valid
|
||||
&& _pos_sp_triplet.current.type == position_setpoint_s::SETPOINT_TYPE_LAND) {
|
||||
_vel_sp(2) = _params.land_speed;
|
||||
_run_alt_control = false;
|
||||
}
|
||||
|
||||
/* special thrust setpoint generation for takeoff from ground */
|
||||
|
||||
Reference in New Issue
Block a user