Performance Test 2 required the AEV to complete the same steps as Performance Test 1, then continue to the end of the track, attach to the load, and travel in the opposite direction with the load. The following code was used to complete Performance Test 2 with the dual-propeller AEV design.
//Accelerate both motors
reverse(1);
reverse(2);
celerate(4,0,33,4);
//Go up to the stop sign
goToAbsolutePosition(216);
//Brake where needed
brake(4);
reverse(1);
reverse(2);
motorSpeed(4,31);
goFor(1.1);
brake(4);
//Continue after stop sign raises
goFor(11);
reverse(1);
reverse(2);
motorSpeed(4,30);
goToRelativePosition(10);
motorSpeed(4,25);
goToRelativePosition(160);
//Brake where needed
brake(4);
reverse(1);
reverse(2);
motorSpeed(4,22);
goFor(1.1);
brake(4);
//Continue after grabbing load
goFor(8);
celerate(4,0,50,4);
goToRelativePosition(-50);
brake(4);