mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 16:31:36 +08:00
ManualSmoothingXY: ensure that maximum speed is correctly propagated to the smoothing class
This commit is contained in:
committed by
Lorenz Meier
parent
9df337e243
commit
5ef2a61be5
@@ -52,6 +52,7 @@ void FlightTaskManualPositionSmooth::_updateSetpoints()
|
||||
/* Smooth velocity setpoint in xy.*/
|
||||
matrix::Vector2f vel(&_velocity(0));
|
||||
Vector2f vel_sp_xy = Vector2f(&_velocity_setpoint(0));
|
||||
_smoothingXY.updateMaxVelocity(_constraints.speed_xy);
|
||||
_smoothingXY.smoothVelocity(vel_sp_xy, vel, _yaw, _yawspeed_setpoint, _deltatime);
|
||||
_velocity_setpoint(0) = vel_sp_xy(0);
|
||||
_velocity_setpoint(1) = vel_sp_xy(1);
|
||||
|
||||
Reference in New Issue
Block a user