Created
March 15, 2018 22:58
-
-
Save scottnuma/bd774c6c96f4fbde6568395823845a06 to your computer and use it in GitHub Desktop.
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
left = '47242536251659126000890' | |
right = '47257303962492263297599' | |
down = '47254280750988421370725' | |
up = '47257525192632122028127' | |
def autonomous_setup(): | |
Robot.run(test_limits) | |
def drive_up(): | |
Robot.set_value(up, "duty_cycle", 0.5) | |
Robot.set_value(down, "duty_cycle", -0.5) | |
Robot.set_value(left, "duty_cycle", 0) | |
Robot.set_value(right, "duty_cycle", 0) | |
def drive_left(): | |
Robot.set_value(up, "duty_cycle", 0) | |
Robot.set_value(down, "duty_cycle", 0) | |
Robot.set_value(left, "duty_cycle", 0.5) | |
Robot.set_value(right, "duty_cycle", -0.5) | |
def drive_down(): | |
Robot.set_value(up, "duty_cycle", -0.5) | |
Robot.set_value(down, "duty_cycle", 0.5) | |
Robot.set_value(left, "duty_cycle", 0) | |
Robot.set_value(right, "duty_cycle", 0) | |
def drive_right(): | |
Robot.set_value(up, "duty_cycle", 0) | |
Robot.set_value(down, "duty_cycle", 0) | |
Robot.set_value(left, "duty_cycle", -0.5) | |
Robot.set_value(right, "duty_cycle", 0.5) | |
def autonomous_main(): | |
pass | |
def teleop_setup(): | |
pass | |
def teleop_main(): | |
pass | |
async def test(): | |
pass | |
async def test_rfid(): | |
pass | |
async def test_limits(): | |
drive_up() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment