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

FlightTaskUtility: remove duplicate slewrate

parent c1bb0cbd
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,8 @@ ManualSmoothingXY::smoothVelocity(matrix::Vector2f &vel_sp, const matrix::Vector
_updateAcceleration(vel_sp, vel, yaw, yawrate_sp, dt);
_velocitySlewRate(vel_sp, dt);
_vel_sp_prev = vel_sp;
}
void
......@@ -106,11 +108,6 @@ ManualSmoothingXY::_updateAcceleration(matrix::Vector2f &vel_sp, const matrix::V
* intention. Jerk is only used for braking.
*/
_getStateAcceleration(vel_sp, vel, intention, dt);
/* Smooth velocity setpoint based on acceleration */
_velocitySlewRate(vel_sp, dt);
_vel_sp_prev = vel_sp;
}
ManualSmoothingXY::Intention
......
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