From 023e78bd1cccf0791a915b9d9d54ceefbb23709d Mon Sep 17 00:00:00 2001 From: George_Andreou Date: Thu, 29 May 2025 18:14:56 +0300 Subject: [PATCH] >>>>>>>>>>>>>Correction for constants. This is a good one!!! --- pid-example/pid-example.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pid-example/pid-example.ino b/pid-example/pid-example.ino index 97914df..a120faf 100644 --- a/pid-example/pid-example.ino +++ b/pid-example/pid-example.ino @@ -4,9 +4,9 @@ QTRSensors qtr; const uint8_t SensorCount = 8; uint16_t sensorValues[SensorCount]; -float Kp = 0.097;//set up the constants value -float Ki = 0.0008; -float Kd = 0.6; +float Kp = 0.09; //set up the constants value +float Ki = 0.0009; +float Kd = 0.3; int P; int I; int D;