Skip to content

Commit

Permalink
reorder clipping functions (velocity first, jerk last)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Poignonec committed Nov 27, 2024
1 parent 9a6ffe7 commit 4ab7b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/control_toolbox/rate_limiter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ T RateLimiter<T>::limit(T & v, T v0, T v1, T dt)
{
const T tmp = v;

limit_second_derivative(v, v0, v1, dt);
limit_first_derivative(v, v0, dt);
limit_value(v);
limit_first_derivative(v, v0, dt);
limit_second_derivative(v, v0, v1, dt);

return tmp != static_cast<T>(0.0) ? v / tmp : static_cast<T>(1.0);
}
Expand Down

0 comments on commit 4ab7b76

Please sign in to comment.