//This program will make the robot move foward. // //Abigail Solis, 2008 //Xavior Arzu, 2008 // //This program will turn motor 0 on for 550 ticks/sec then it will do the same for motor 1. Then they will turn off. void main (){ iROBOinit(RULERWORLD); printf("Robot will move forward\n"); mrp(0,550,30000L);//move motor 0 550 ticks/sec to positon 30000 mrp(1,550,30000L);//move motor 1 550 ticks/sec to positon 30000 printf("Robot will sleep for 8 seconds\n"); sleep(8.);//give motors time to run for 550 ticks printf("Motors will turn off\n"); off(0);//turn motor 0 off off(1);//turn motor 1 off }