Skip to content

Commit 1113d3e

Browse files
author
Chris Anderson
committed
Cleanup
1 parent 726b4ea commit 1113d3e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/Robot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
kit = MotorKit()
1717

1818
class Robot(object):
19-
def __init__(self, left_trim=0, right_trim=0,
20-
stop_at_exit=True):
19+
def __init__(self, left_trim=0, right_trim=0, stop_at_exit=True):
2120
"""Create an instance of the robot. Can specify the following optional
2221
parameter
2322
- left_trim: Amount to offset the speed of the left motor, can be positive

examples/RobotTest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
# is optional and if not specified the robot will start moving
4040
# forever.
4141

42+
robot.left(0.5,1)
4243
robot.right(0.5,1)
44+
robot.steer(0.5,0.2)
4345
time.sleep(3)
4446
robot.stop() # Stop the robot from moving.
4547

0 commit comments

Comments
 (0)