mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 17:28:54 +08:00
FlightTaskManualAltitudeSmooth: update vel sp z
This commit is contained in:
committed by
Beat Küng
parent
153b012df6
commit
5ad37cec71
@@ -61,6 +61,7 @@ void FlightTaskManualAltitudeSmooth::_updateSetpoints()
|
||||
/* Smooth velocity setpoint */
|
||||
float vel_sp[2] = {_vel_sp_z, _vel_sp_prev_z};
|
||||
_smoothing.smoothVelFromSticks(vel_sp, _deltatime);
|
||||
_vel_sp_z = vel_sp[0];
|
||||
|
||||
/* Check for altitude lock*/
|
||||
_updateAltitudeLock();
|
||||
|
||||
Reference in New Issue
Block a user