Skip to content

Commit

Permalink
FlightTaskUtility: remove duplicate slewrate
Browse files Browse the repository at this point in the history
  • Loading branch information
Stifael authored and bkueng committed Apr 5, 2018
1 parent c1bb0cb commit d64b59b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/FlightTasks/tasks/Utility/ManualSmoothingXY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d64b59b

Please sign in to comment.