Performance Test 2

//Reverse both motors

reverse(4);

//Set both motors at fifty-five percent power

motorSpeed(4,55);

//Run motors for two seconds

goFor(2);

//Stop both motors

brake(4);

//For two seconds

goFor(2.6);

//Reverse both motors again

reverse(4);

//Set both motors at fifty-five percent power

motorSpeed(4,55);

//For .25 seconds (power brake)

goFor(0.25);

//Wait at gate for four seconds

brake(4);

//Reverse both motors again

reverse(4);

//Move forward, through the gate at forty-five percent power

motorSpeed(4,45);

//Run for three seconds

goFor(3);

//Stop both motors

motorSpeed(4,0);

//For three seconds- pick up the caboose

goFor(3);

//Reverse both motors again

reverse(4);

//Run both motors at forty-five percent power again

motorSpeed(4,45);

//For two seconds

goFor(2);

//Stop the AEV

brake(4);