From 1a3c2a1c1ff5b8eeea3fdbdcf5b285ef43fc35fd Mon Sep 17 00:00:00 2001 From: George_Andreou Date: Mon, 23 Jun 2025 03:03:23 +0300 Subject: [PATCH] Update rally.py --- rally.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rally.py b/rally.py index fb33d46..b9926ee 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.9 # Base throttle for both motors -Kp_sync = 0.08 # Proportional gain for sync correction -Kd_sync = 0.008 +Kp_sync = 0.05 # Proportional gain for sync correction +Kd_sync = 0.001 prev_error = 0 # Create a digitalinout object for the user switch