Created
March 9, 2018 19:07
-
-
Save scottnuma/ae64850b4d5fc5e8047996cff71a32c1 to your computer and use it in GitHub Desktop.
Code to test robot hardware.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Code to just run the motors. | |
This code requires no gamepad and will only attempt to make the | |
motors spin. Useful for debugging hardware issues on robots. | |
""" | |
# Update motor values below | |
left_motor = "" | |
right_motor = "" | |
def autonomous_setup(): | |
print("Autonomous mode has started!") | |
def autonomous_main(): | |
pass | |
def teleop_setup(): | |
print("Tele-operated mode has started!") | |
def teleop_main(): | |
Robot.set_value(left_motor, "duty_cycle", 1) | |
Robot.set_value(right_motor, "duty_cycle", 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment