Skip to content

Commit

Permalink
doc/lessons/lesson-5: Update example with real code
Browse files Browse the repository at this point in the history
The real code needed setleft/setright swapped.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Apr 18, 2020
1 parent b537b2f commit 01941c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/lessons/lesson-5/pid-bug-one.py
Expand Up @@ -50,10 +50,10 @@ def process():
def set_speed(m, val):
talkto(m)
if val < 0:
setleft()
setright()
setpower(-val)
else:
setright()
setleft()
setpower(val)


Expand Down

0 comments on commit 01941c1

Please sign in to comment.