Skip to content

Commit

Permalink
strictly accelerating only
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Poignonec committed Dec 1, 2024
1 parent 7649782 commit c467026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/control_toolbox/rate_limiter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ T RateLimiter<T>::limit_second_derivative(T & v, T v0, T v1, T dt)
// Only limit jerk when accelerating or reverse_accelerating
// Note: this prevents oscillating closed-loop behavior, see discussion
// details in https://github.com/ros-controls/control_toolbox/issues/240.
if ((dv - dv0) * (v - v0) >= 0)
if ((dv - dv0) * (v - v0) > 0)
{
const T dt2 = dt * dt;

Expand Down

0 comments on commit c467026

Please sign in to comment.