File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
# License: MIT License https://opensource.org/licenses/MIT
4
4
import time
5
5
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
8
8
9
9
10
10
# Set the trim offset for each motor (left and right). This is a value that
24
24
25
25
# Create an instance of the robot with the specified trim values.
26
26
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 )
28
28
29
29
# Now move the robot around!
30
30
# Each call below takes two parameters:
44
44
45
45
46
46
# That's it! Note that on exit the robot will automatically stop moving.
47
+
You can’t perform that action at this time.
0 commit comments