Update rally.py
This commit is contained in:
parent
4fc0f15a88
commit
8a4d596090
1 changed files with 1 additions and 0 deletions
1
rally.py
1
rally.py
|
|
@ -26,6 +26,7 @@ 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.05 # Proportional gain for sync correction
|
Kp_sync = 0.05 # Proportional gain for sync correction
|
||||||
Kd_sync = 0.001
|
Kd_sync = 0.001
|
||||||
|
prev_error = 0
|
||||||
|
|
||||||
# Create a digitalinout object for the user switch
|
# Create a digitalinout object for the user switch
|
||||||
user_sw = digitalio.DigitalInOut(board.USER_SW)
|
user_sw = digitalio.DigitalInOut(board.USER_SW)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue