This test required that our vehicle gets to the stop sign and wait for 7 seconds and go through the gate. There were two different codes to account for testing in two different rooms.
Code from Hitchcock 224 Performance Test 1
//The motors are reversed to make the AEV travel in correct direction
reverse(4);
//Accelerates to 25% power in 4 seconds
celerate(4,0,25,4);
//Travels to 265 marks
goToAbsolutePosition(265);
//Brakes all motors
brake(4);
//Reverses all motors
reverse(4);
//Accelerates motors in reverse direction to 30 % power
motorSpeed(4,30);
//Motors run for 1.5 seconds
goFor(1.5);
//Brakes all motors
brake(4);
//AEV wait at gate for 6 seconds
goFor(6);
//Reverses all motors
reverse(4);
//Accelerates to 25% power in 4 seconds
celerate(4,0,25,4);
Code for performance test 1 in Hitchcock 308
//The motors are reversed to make the AEV travel in correct direction
reverse(4);
//Accelerates to 25% power in 4 seconds
celerate(4,0,25,4);
//Travels to 270 marks
goToAbsolutePosition(270);
//Brakes all motors
brake(4);
//Reverses all motors
reverse(4);
//Accelerates motors in reverse direction to 30 % power
motorSpeed(4,30);
//Motors run for 1.5 seconds
goFor(1.5);
//Brakes all motors
brake(4);
//AEV wait at gate for 6 seconds
goFor(6);
//Reverses all motors
reverse(4);
//Accelerates to 25% power in 4 seconds
celerate(4,0,25,4);