From 5b390255c9ac6650fdac69312645164ae86a31de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=A0togl?= Date: Thu, 3 Nov 2022 14:00:34 +0100 Subject: [PATCH] Fixup initial values. --- src/pid_ros.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pid_ros.cpp b/src/pid_ros.cpp index 6c606aff..432e8939 100644 --- a/src/pid_ros.cpp +++ b/src/pid_ros.cpp @@ -129,7 +129,8 @@ PidROS::getDoubleParam(const std::string & param_name, double & value) bool PidROS::initPid() { - double p, i, d, i_min, i_max = std::numeric_limits::quiet_NaN(); + double p, i, d, i_min, i_max; + p = i = d = i_min = i_max = std::numeric_limits::quiet_NaN(); bool antiwindup = false; bool all_params_available = true; all_params_available &= getDoubleParam(param_prefix_ + "p", p);