Skip to content

Commit 593b236

Browse files
committed
Straight and turn max_effort issue
1 parent ebae1f8 commit 593b236

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
@@ -155,7 +155,7 @@ def straight(self, distance: float, max_effort: float = 0.5, timeout: float = No
155155
ki = 0.04,
156156
kd = 0.06,
157157
min_output = 0.25,
158-
max_output = 0.5,
158+
max_output = max_effort,
159159
max_integral = 10,
160160
tolerance = 0.25,
161161
tolerance_count = 3,
@@ -241,7 +241,7 @@ def turn(self, turn_degrees: float, max_effort: float = 0.5, timeout: float = No
241241
ki = 0.001,
242242
kd = 0.00165,
243243
min_output = 0.35,
244-
max_output = 0.5,
244+
max_output = max_effort,
245245
max_integral = 75,
246246
tolerance = 1,
247247
tolerance_count = 3

0 commit comments

Comments
 (0)