Final Performance Test
//accelerate to the top
celerate(2,0,40,1);
motorSpeed(2,40);
goToAbsolutePosition(-220);
motorSpeed(2,0);
//roll to gate and brake
goToAbsolutePosition(-275);
reverse(4);
motorSpeed(2,60);
goFor(1);
brake(4);
goFor(6.5);//stop at the gate
//proceed through gate
reverse(4);
celerate(2,0,40,3);
motorSpeed(2,40);
goFor(2.75);
motorSpeed(2,0);
goToAbsolutePosition(-490);
//slow down before connecting to caboose
reverse(4);
motorSpeed(2,35);
goFor(1);
motorSpeed(2,0);
//wait for 5 then pull caboose
goFor(10);
celerate(4,0,75,3);
motorSpeed(4,75);
goToRelativePosition(220);
motorSpeed(4,0);
//roll to gate and brake
goToRelativePosition(35);
reverse(4);
motorSpeed(4,80);
goFor(0.75);
brake(4);
goFor(6);//stop for 7 seconds
//go through gate and return to the start
reverse(4);
celerate(4,0,60,2);
goToRelativePosition(10);
goToRelativePosition(155);
reverse(4);
motorSpeed(4,35);
goFor(1.25);