#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); //Now wait until motors //have reached goal positions rsim_bmd(0); rsim_bmd(1); //move both motors back rsim_mrp(0, 300, -1000L); rsim_mrp(1, 300, -1000L); //leave motors running till //motors reach positions rsim_bmd(0); rsim_bmd(1); }