Skip to content

Instantly share code, notes, and snippets.

@ringodin
Created March 12, 2019 05:56
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 ringodin/a94516bbd74365b29a518fcce19b3461 to your computer and use it in GitHub Desktop.
Save ringodin/a94516bbd74365b29a518fcce19b3461 to your computer and use it in GitHub Desktop.
#pragma config(Sensor, port9, bumpSwitch, sensorVexIQ_Touch)
#pragma config(Motor, motor1, leftMotor, tmotorVexIQ, openLoop, encoder)
#pragma config(Motor, motor6, rightMotor, tmotorVexIQ, openLoop, reversed, encoder)
task main()
{
// Loop Forever
while (true)
{
// Drive Forward By Left and Right Motors To 50% Power
// Do Nothing While Waiting For Touch
// This takes a while loop
//Once Touch Sensor Is Pressed Stop Both Motors
//Back up 1 Rotation
// Turn 100 Degrees To The Left
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment