//Kevin03, Made by Kevin van Rensburg, 21 Feb 2003 //This program makes the robot drive in a square. //Made for Kevin's Roverbot 3 //Download to program Slot 1 #define MOVE_TIME 100 //Time for a straight move #define TURN_TIME 69 //Time for 90 degree turn task main() { repeat(4) //Make a square { SetPower(OUT_A+OUT_C,3); OnFwd(OUT_A+OUT_C); Wait(MOVE_TIME); OnRev(OUT_C); Wait(TURN_TIME); } Off(OUT_A+OUT_C); //Turn off Motors }