Skip to content

Commit 41d811e

Browse files
committed
update import
1 parent df22331 commit 41d811e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/motorkit_robot_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# License: MIT License https://opensource.org/licenses/MIT
44
import time
55

6-
# Import the Robot.py file (must be in the same directory as this file!).
7-
import Robot
6+
# Import the motorkit_robot.py file (must be in the same directory as this file!).
7+
import motorkit_robot
88

99

1010
# Set the trim offset for each motor (left and right). This is a value that
@@ -24,7 +24,7 @@
2424

2525
# Create an instance of the robot with the specified trim values.
2626

27-
robot = Robot.Robot(left_trim=LEFT_TRIM, right_trim=RIGHT_TRIM)
27+
robot = motorkit_robot.Robot(left_trim=LEFT_TRIM, right_trim=RIGHT_TRIM)
2828

2929
# Now move the robot around!
3030
# Each call below takes two parameters:
@@ -44,3 +44,4 @@
4444

4545

4646
# That's it! Note that on exit the robot will automatically stop moving.
47+

0 commit comments

Comments
 (0)