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();
@@ -45,19 +45,11 @@ class FlightTaskManualAltitudeSmooth : public FlightTaskManualAltitude
{
public:
FlightTaskManualAltitudeSmooth(control::SuperBlock *parent, const char *name);
virtual ~FlightTaskManualAltitudeSmooth() = default;
bool activate() override;
protected:
virtual void _updateSetpoints() override;
private:
ManualSmoothingZ _smoothing; // Smoothing for velocity setpoints.
float _vel_sp_prev_z{}; // Velocity setpoint from previous iteration.
ManualSmoothingZ _smoothing; /**< smoothing for velocity setpoints */
};