mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 06:10:35 +08:00
mc_pos_control: don't use slewrate in mission
This commit is contained in:
committed by
Lorenz Meier
parent
267dbe9b7a
commit
7a822c9db2
@@ -1952,7 +1952,11 @@ MulticopterPositionControl::calculate_velocity_setpoint(float dt)
|
||||
_vel_sp(2) = math::min(_vel_sp(2), vel_limit);
|
||||
|
||||
/* apply slewrate (aka acceleration limit) for smooth flying */
|
||||
vel_sp_slewrate(dt);
|
||||
|
||||
if (!_control_mode.flag_control_auto_enabled) {
|
||||
vel_sp_slewrate(dt);
|
||||
}
|
||||
|
||||
_vel_sp_prev = _vel_sp;
|
||||
|
||||
/* special velocity setpoint limitation for smooth takeoff (after slewrate!) */
|
||||
|
||||
Reference in New Issue
Block a user