diff --git a/sciurus17_control/src/sciurus17_hardware.cpp b/sciurus17_control/src/sciurus17_hardware.cpp index 9e4dfd7..54f3d42 100644 --- a/sciurus17_control/src/sciurus17_hardware.cpp +++ b/sciurus17_control/src/sciurus17_hardware.cpp @@ -212,7 +212,7 @@ CallbackReturn Sciurus17Hardware::on_activate(const rclcpp_lifecycle::State & /* CallbackReturn Sciurus17Hardware::on_deactivate(const rclcpp_lifecycle::State & /*previous_state*/) { // Set low PID gains for safe stopping. - for (auto group_name : GROUP_NAMES) { + for (const auto & group_name : GROUP_NAMES) { if (!hardware_->write_position_pid_gain_to_group( group_name, STOP_P_GAIN, STOP_I_GAIN, STOP_D_GAIN)) {