#use "iROBOsim.ic" void main(){ // initialize simulator // use world keyword iROBOinit(RULERWORLD); //move both motors fwd rsim_mrp(0, 400, 2000L); rsim_mrp(1, 400, 2000L); //this sleep is longer //than should be needed sleep(8.0); //move both motors back rsim_mrp(0, 300, -1000L); rsim_mrp(1, 300, -1000L); //leave motors running no more // than 5 secs sleep(5.0); }