From eecee24643dcb55b0bc47db84ad7f6134296dc4a Mon Sep 17 00:00:00 2001 From: George_Andreou Date: Fri, 27 Jun 2025 21:51:57 +0300 Subject: [PATCH] Update kp and kd --- rally.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rally.py b/rally.py index a53ef30..5bab4e0 100644 --- a/rally.py +++ b/rally.py @@ -24,8 +24,8 @@ DECAY_MODE = motor.SLOW_DECAY UPDATE_RATE = 100 # Hz SLEEP_TIME = 1 / UPDATE_RATE BASE_THROTTLE = 0.85 # Base throttle for both motors -Kp_sync = 1 # Proportional gain for sync correction -Kd_sync = 0.01 +Kp_sync = 1.5 # Proportional gain for sync correction +Kd_sync = 0.04 prev_error = 0 # Create a digitalinout object for the user switch