mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 09:13:34 +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();
|
||||
|
||||
@@ -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 */
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user