The following code was used in Room 224 to test the Advanced Energy Vehicle. The code used successfully completed all of the objectives in the Mission Concept Review and completed an entrie run.
Room 224 code
reverse(4);
//Start
motorSpeed(4,30);
goToAbsolutePosition(-320);
//Stops at gate
reverse(4);
motorSpeed(4,35);
goFor(1.45);
reverse(4);
motorSpeed(4,0);
goFor(7.2);
//Starts for R2D2
motorSpeed(4,30);
goToAbsolutePosition(-735);
//Stops for R2D2
reverse(4);
motorSpeed(4,35);
goFor(1.55);
motorSpeed(4,0);
goFor(5);
//Starts for gate second time
motorSpeed(4,40);
goToAbsolutePosition(-580);
//Stops at gate second time
reverse(4);
motorSpeed(4,40);
goFor(2.6);
motorSpeed(4,0);
goFor(7.2);
//Starts for finish
reverse(4);
motorSpeed(4,35);
goToAbsolutePosition(-150);
//Stops at finish
reverse(4);
motorSpeed(4,40);
goFor(3);