FlightTaskManualAcceleration: remove duplicate yaw stick handling

It's already instanciated and ran by FlightTaskManualAltitude
which FlightTaskManualAcceleration inherits from.
This commit is contained in:
Matthias Grob
2023-07-03 09:52:47 +02:00
parent 03183ccacf
commit 4d465533b5
2 changed files with 0 additions and 5 deletions
@@ -61,9 +61,6 @@ bool FlightTaskManualAcceleration::update()
{
bool ret = FlightTaskManualAltitudeSmoothVel::update();
_stick_yaw.generateYawSetpoint(_yawspeed_setpoint, _yaw_setpoint, _sticks.getYawExpo(), _yaw, _is_yaw_good_for_control,
_deltatime);
_stick_acceleration_xy.generateSetpoints(_sticks.getPitchRollExpo(), _yaw, _yaw_setpoint, _position,
_velocity_setpoint_feedback.xy(), _deltatime);
_stick_acceleration_xy.getSetpoints(_position_setpoint, _velocity_setpoint, _acceleration_setpoint);
@@ -58,7 +58,5 @@ private:
void _ekfResetHandlerVelocityXY(const matrix::Vector2f &delta_vxy) override;
StickAccelerationXY _stick_acceleration_xy{this};
StickYaw _stick_yaw{this};
WeatherVane _weathervane{this}; /**< weathervane library, used to implement a yaw control law that turns the vehicle nose into the wind */
};