Performance Test 1

//—————————————————————————-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);