mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 16:53:34 +08:00
limit takeoff and land velocity to max z velocity
This commit is contained in:
@@ -558,6 +558,10 @@ MulticopterPositionControl::parameters_update(bool force)
|
||||
|
||||
param_get(_params_handles.mc_att_yaw_p, &v);
|
||||
_params.mc_att_yaw_p = v;
|
||||
|
||||
/* takeoff and land velocities should not exceed maximum */
|
||||
_params.tko_speed = fminf(_params.tko_speed, _params.vel_max(2));
|
||||
_params.land_speed = fminf(_params.land_speed, _params.vel_max(2));
|
||||
}
|
||||
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user