From 7e2a8f6f26a4b6792d2a93047b16c5c326dd0c3f Mon Sep 17 00:00:00 2001 From: Phil Schatzmann Date: Mon, 6 Nov 2023 08:35:24 +0100 Subject: [PATCH] PIDController --- src/AudioLibs/PIDController.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/AudioLibs/PIDController.h b/src/AudioLibs/PIDController.h index ca4170b3c8..828c8f7477 100644 --- a/src/AudioLibs/PIDController.h +++ b/src/AudioLibs/PIDController.h @@ -67,14 +67,14 @@ class PIDController { } protected: - float dt; - float max; - float min; - float kp; - float kd; - float ki; - float preerror = 0; - float integral = 0; + float dt = 1.0f; + float max = 0.0f; + float min = 0.0f; + float kp = 0.0f; + float kd = 0.0f; + float ki = 0.0f; + float preerror = 0.0f; + float integral = 0.0f; }; // namespace audiotools