We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4577aef commit b448c36Copy full SHA for b448c36
control_toolbox/src/pid_ros.cpp
@@ -260,7 +260,6 @@ bool PidROS::initialize_from_ros_parameters()
260
u_max = UMAX_INFINITY;
261
u_min = -UMAX_INFINITY;
262
bool antiwindup = false;
263
- bool saturation = false;
264
std::string antiwindup_strat_str = "legacy";
265
bool all_params_available = true;
266
@@ -275,6 +274,7 @@ bool PidROS::initialize_from_ros_parameters()
275
274
all_params_available &=
276
get_double_param(param_prefix_ + "tracking_time_constant", tracking_time_constant);
277
+ bool saturation = std::isfinite(u_max) || std::isfinite(u_min);
278
get_boolean_param(param_prefix_ + "saturation", saturation);
279
if (!saturation)
280
{
0 commit comments