Skip to content

Commit 81fe0e2

Browse files
committed
Updated PID parameters for turning to smooth motion
1 parent 9b27701 commit 81fe0e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XRPLib/differential_drive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def turn(self, turn_degrees: float, max_effort: float = 0.5, timeout: float = No
243243
kp = 0.02,
244244
ki = 0.001,
245245
kd = 0.00165,
246-
min_output = 0.35,
246+
min_output = 0.2,
247247
max_output = max_effort,
248248
max_integral = 75,
249249
tolerance = 1,
@@ -253,7 +253,7 @@ def turn(self, turn_degrees: float, max_effort: float = 0.5, timeout: float = No
253253
# Secondary controller to keep encoder values in sync
254254
if secondary_controller is None:
255255
secondary_controller = PID(
256-
kp = 0.8,
256+
kp = 0.2,
257257
)
258258

259259
if use_imu and (self.imu is not None):

0 commit comments

Comments
 (0)