Lab 10- Performance Test 2

Performance Test 2- Attaching to the Caboose and exiting the loading area

For Performance Test 2, the team had to create a code that allowed the AEV to stop at the gate, proceed past the gate, and attack to the caboose in the loading zone. In order to save energy, the team used the downhill incline as an advantage as a way to propel the AEV forward without using energy. The team successfully completed this task.

First Test Code used

reverse(4);
motorSpeed(4,35);
goToAbsolutePosition(101);
reverse(4);
motorSpeed(4,20);
goFor(1);
brake(4);
goFor(10);
reverse(4);
motorSpeed(4,35);
goToRelativePosition(48);

Second Test Code (meets objective)

 

reverse(4);
motorSpeed(4,35);
goToAbsolutePosition(125);
reverse(4);
motorSpeed(4,40);
goFor(1);
brake(4);
goFor(10);
reverse(4);
motorSpeed(4,35);
goToRelativePosition(48);
motorSpeed(4,0);
goFor(10);
reverse(4);
motorSpeed(4,30);
goFor(3);