Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions examples/motorkit_robot_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# License: MIT License https://opensource.org/licenses/MIT
import time

# Import the Robot.py file (must be in the same directory as this file!).
import Robot
# Import the motorkit_robot.py file (must be in the same directory as this file!).
import motorkit_robot


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

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

robot = Robot.Robot(left_trim=LEFT_TRIM, right_trim=RIGHT_TRIM)
robot = motorkit_robot.Robot(left_trim=LEFT_TRIM, right_trim=RIGHT_TRIM)

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


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