// autonomous program goes in here and replaces the code that's there now task autonomous() { while (true) { wait1Msec(500); motor[port1] = 63; wait1Msec(500); motor[port1] = 0; } } // teleop program godes in here and replaces thje code that's there now task teleop() { while (true) { motor[port1] = vexRT[Ch2]; motor[port10] = vexRT[Ch3]; wait1Msec(10); } } // function to wait for 1 second that works for long times and // makes the program a little more understandable void waitSeconds(int seconds) { for (int i = 0; i < seconds; i++) { wait1Msec(1000); } } // main control program that does the autonomous and teleop programs. // it will automatically start and stop each of the auto and teleop periods // Make this a "VEXNet or USB" program and will start when the task main() { while ((vexRT[Btn7D] | vexRT[Btn7L] | vexRT[Btn7R] | vexRT[Btn7U]) == 0) wait1Msec(10); startTask(autonomous); waitSeconds(20); stopTask(autonomous); startTask(teleop); waitSeconds(25); stopTask(teleop); }