Skip to content
Snippets Groups Projects
Commit a7f48596 authored by Dennis Mannhart's avatar Dennis Mannhart Committed by Beat Küng
Browse files

FlightTaskManualAltitudeSmooth: remove unused member methods/variables

parent c15b114c
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment