Beginner - Move Backward

Create a new file:

  • Select the File menu
  • Select New
  • Select New File

Name it moveBackward.c

Delete everything in the file, and replace it with:

#pragma config(StandardModel, "VEX IQ Clawbot")

task main()
{
  setMotorSpeed(leftMotor, -50);
  setMotorSpeed(rightMotor, -50);
  sleep(2000);
}

Press F5 to compile and download to the robot so you can run this in Virtual Worlds.