We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc76338 commit 4577aefCopy full SHA for 4577aef
1 file changed
control_toolbox/src/pid_ros.cpp
@@ -394,7 +394,9 @@ bool PidROS::initialize_from_args(
394
rclcpp::ParameterValue(antiwindup_strat.tracking_time_constant));
395
declare_param(
396
param_prefix_ + "error_deadband", rclcpp::ParameterValue(antiwindup_strat.error_deadband));
397
- declare_param(param_prefix_ + "saturation", rclcpp::ParameterValue(true));
+ declare_param(
398
+ param_prefix_ + "saturation",
399
+ rclcpp::ParameterValue(std::isfinite(gains.u_max_) || std::isfinite(gains.u_min_)));
400
401
param_prefix_ + "antiwindup_strategy",
402
rclcpp::ParameterValue(gains.antiwindup_strat_.to_string()));
0 commit comments