Skip to content

Commit 713340f

Browse files
committed
ev3: fix the curve block more
We can't wait for state if speed was zero.
1 parent 76cfad4 commit 713340f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

roberta/ev3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def driveInCurve(self, direction, left_port, left_speed_pct, right_port, right_s
526526
# start motors
527527
ml.run_to_rel_pos()
528528
mr.run_to_rel_pos()
529-
while (ml.state or mr.state):
529+
while ((ml.state and left_speed_pct) or (mr.state and right_speed_pct)):
530530
self.busyWait()
531531
else:
532532
if direction is 'backwards':

0 commit comments

Comments
 (0)