Update rally.py

This commit is contained in:
Γιώργος Αντρέου 2025-06-23 03:03:23 +03:00
parent 3e343a5c68
commit 1a3c2a1c1f

View file

@ -24,8 +24,8 @@ DECAY_MODE = motor.SLOW_DECAY
UPDATE_RATE = 100 # Hz UPDATE_RATE = 100 # Hz
SLEEP_TIME = 1 / UPDATE_RATE SLEEP_TIME = 1 / UPDATE_RATE
BASE_THROTTLE = 0.9 # Base throttle for both motors BASE_THROTTLE = 0.9 # Base throttle for both motors
Kp_sync = 0.08 # Proportional gain for sync correction Kp_sync = 0.05 # Proportional gain for sync correction
Kd_sync = 0.008 Kd_sync = 0.001
prev_error = 0 prev_error = 0
# Create a digitalinout object for the user switch # Create a digitalinout object for the user switch