Performance Test 2

 

For performance test two, the team was given the task to program the AEV to run and stop at the gate inside the sensors for seven seconds. Then, have the AEV proceed down the hill and connect to the load. Once connected the AEV needs to sit for five seconds, and then leave the loading zone.

Visual of PT2

 

 

*Model used to complete the test*


 

Below the code that the AEV ran for the performance test.

go to 20 marks
motorSpeed(4,40);
goToRelativePosition(-210);

//brake
brake(4);

reverse(4);
celerate(4,0,30,2);
motorSpeed(4,30);
goFor(.65);

brake(4);
goFor(7);

reverse(4);
motorSpeed(4,45);
goToRelativePosition(-110);
brake(4);
goFor(12);
reverse(4);
motorSpeed(4,50);
goFor(2);
brake(4);

(To see an index of Arduino commands, click here)


 

For this performance test, the team began to use the Arduino commands that were reliant on distance rather than time. This meant that the AEV was now using the reflective sensors. As a result of this, the AEV was much more consistent in between runs. Also to retain consistency,  the battery was switched out more often. That being said, the AEv still had some difficulty completing the second performance test and used all three trials before finally  passing the test.