From df2cab0a77f81bcac5e8a2deb07ee9680838eb99 Mon Sep 17 00:00:00 2001 From: Varun Sangtani Date: Thu, 13 Jun 2024 17:43:24 +0100 Subject: [PATCH] setting initial PID params to 0 --- esp32/lib/PidController/PidController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp32/lib/PidController/PidController.cpp b/esp32/lib/PidController/PidController.cpp index e9f0b81..c348b33 100644 --- a/esp32/lib/PidController/PidController.cpp +++ b/esp32/lib/PidController/PidController.cpp @@ -20,7 +20,7 @@ double PidController::filtered_value = 0; double PidController::rotation_correction = 0; // Initialise PID parameters using known values -PidParams PidController::params(1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 1.00); +PidParams PidController::params(0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00); PidDirection PidController::direction(0, KeyDirection::STOP); bool PidController::setup(IWifi &wifi, unsigned long timeout)