Skip to content

Commit dfac1d4

Browse files
Fix legacy clamping limit -0/0
1 parent afa13f3 commit dfac1d4

File tree

1 file changed

+2
-2
lines changed
  • control_toolbox/include/control_toolbox

1 file changed

+2
-2
lines changed

control_toolbox/include/control_toolbox/pid.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ struct AntiWindupStrategy
135135
"AntiWindupStrategy 'back_calculation' requires a valid positive tracking time constant "
136136
"(tracking_time_constant)");
137137
}
138-
if (i_min >= i_max)
138+
if (i_min > i_max)
139139
{
140140
throw std::invalid_argument(
141141
fmt::format(
142-
"PID requires i_min < i_max if limits are finite (i_min: {}, i_max: {})", i_min, i_max));
142+
"PID requires i_min <= i_max if limits are finite (i_min: {}, i_max: {})", i_min, i_max));
143143
}
144144
if (
145145
type != NONE && type != UNDEFINED && type != LEGACY && type != BACK_CALCULATION &&

0 commit comments

Comments
 (0)