From 5c128f4034ee954db187cd2baba43af7a8f755e1 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Mon, 13 Nov 2023 13:51:59 -0800 Subject: [PATCH] uninitialized variable! --- firmware/pid.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/pid.h b/firmware/pid.h index 3109c33..9292838 100644 --- a/firmware/pid.h +++ b/firmware/pid.h @@ -21,6 +21,6 @@ private: const float m_kd; const float m_clamp; - float m_lastError; - float m_integrator; + float m_lastError = 0; + float m_integrator = 0; };