FlightTaskManualAltitudeSmooth: remove unused member methods/variables

This commit is contained in:
Dennis Mannhart
2018-04-05 07:30:12 +02:00
committed by Beat Küng
parent c15b114cad
commit a7f4859698
2 changed files with 2 additions and 17 deletions
@@ -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();