Skip to content

Instantly share code, notes, and snippets.

@scottnuma
Created February 6, 2018 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottnuma/8ef64b9309e00c2e942299f4e4d701ac to your computer and use it in GitHub Desktop.
Save scottnuma/8ef64b9309e00c2e942299f4e4d701ac to your computer and use it in GitHub Desktop.
Minimum code for a driving base kit
# 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