Skip to content

Instantly share code, notes, and snippets.

@pinglunliao
Last active November 7, 2019 05:59
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 pinglunliao/456b3734329eec6a34657cf3c3824617 to your computer and use it in GitHub Desktop.
Save pinglunliao/456b3734329eec6a34657cf3c3824617 to your computer and use it in GitHub Desktop.
task main()
{
// Moving Forward
motor[motorC] = 100;
motor[motorB] = 100;
wait1Msec(1000);
// Moving Backword
motor[motorC] = -100;
motor[motorB] = -100;
wait1Msec(1000);
// Turn Right
motor[motorC] = 100;
motor[motorB] = -100;
wait1Msec(1000);
// Turn Left
motor[motorC] = -100;
motor[motorB] = 100;
wait1Msec(1000);
// Stop
motor[motorC] = 0;
motor[motorB] = 0;
wait1Msec(3000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment