Created
February 6, 2018 19:26
-
-
Save scottnuma/8ef64b9309e00c2e942299f4e4d701ac to your computer and use it in GitHub Desktop.
Minimum code for a driving base kit
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
# Update motor values below | |
left_motor = "47245533815105973122875" | |
right_motor = "47254280750988421370725" | |
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