mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 03:11:36 +08:00
FlightTaskManualAltitudeSmooth: remove unused member methods/variables
This commit is contained in:
committed by
Beat Küng
parent
c15b114cad
commit
a7f4859698
@@ -44,20 +44,13 @@ FlightTaskManualAltitudeSmooth::FlightTaskManualAltitudeSmooth(control::SuperBlo
|
||||
_smoothing(_velocity(2), _sticks(2))
|
||||
{}
|
||||
|
||||
|
||||
bool FlightTaskManualAltitudeSmooth::activate()
|
||||
{
|
||||
_vel_sp_prev_z = _velocity(2);
|
||||
return FlightTaskManualAltitude::activate();
|
||||
}
|
||||
|
||||
void FlightTaskManualAltitudeSmooth::_updateSetpoints()
|
||||
{
|
||||
/* Get yaw, thrust */
|
||||
FlightTaskManualAltitude::_updateSetpoints();
|
||||
|
||||
/* Smooth velocity in z*/
|
||||
_smoothing.smoothVelFromSticks(_vel_sp_z, _deltatime);
|
||||
_smoothing.smoothVelFromSticks(_vel_sp(2), _deltatime);
|
||||
|
||||
/* Check for altitude lock*/
|
||||
_updateAltitudeLock();
|
||||
|
||||
Reference in New Issue
Block a user