From ca072ae8bba6dfe0d775341708a2bafde990cf74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=93=CE=B9=CF=8E=CF=81=CE=B3=CE=BF=CF=82?= Date: Sun, 5 Jun 2022 16:29:48 +0300 Subject: [PATCH] Changed the value of Kp making the robot more centered --- pid-example/pid-example.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pid-example/pid-example.ino b/pid-example/pid-example.ino index b2547cd..8ef8d47 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.07; //set up the constants value +float Kp = 0.06; //set up the constants value float Ki = 0.0008; -float Kd = 0.6; +float Kd = 0.7; int P; int I; int D;