//—————————————————————————-Performance Test #1
rotateServo(45);//Reverse the motors on the program
reverse(4);//Reverse the direction of the motors, forward direction
//Run the motors at 35 percent power untill the mark position is reached
motorSpeed(4,35);
goToAbsolutePosition(240);
brake(4); // Cut the power to the propellers
rotateServo(0); //Raise the brake to stop the AEV
goFor(1);
do{ //Program to attacth to the caboose in case AEV comes short
rotateServo(20);
motorSpeed(4,20);
}while(getVehiclePostion() < 300);
brake(4);
rotateServo(0);
goFor(7);
rotateServo(20);
//————————————————————————–PerformanceTest #2 – Go get the Caboose
//Run the motors at 35 percent power untill the mark position is reached
motorSpeed(4,25);
goToAbsolutePosition(545);
brake(4);
rotateServo(0); //Raise the brake to stop the AEV000
goFor(1); // Wait outside the gate for 8 seconds
do{ //Program to attacth to the caboose in case AEV comes short
rotateServo(20);
motorSpeed(4,30);
}while(getVehiclePostion() < 625);
/*rotateServo(20);
//Burst Function
motorSpeed(4,35);
goFor(1);
*/
brake(4);
goFor(6);