Skip to content

Commit

Permalink
ev3: fix the curve block more
Browse files Browse the repository at this point in the history
We can't wait for state if speed was zero.
  • Loading branch information
ensonic committed Jan 19, 2018
1 parent 76cfad4 commit 713340f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roberta/ev3.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def driveInCurve(self, direction, left_port, left_speed_pct, right_port, right_s
# start motors
ml.run_to_rel_pos()
mr.run_to_rel_pos()
while (ml.state or mr.state):
while ((ml.state and left_speed_pct) or (mr.state and right_speed_pct)):
self.busyWait()
else:
if direction is 'backwards':
Expand Down

0 comments on commit 713340f

Please sign in to comment.