Performance Test 1

                      Figure 1: Power (Watts) v. Time (Seconds)

This graph shows the power in watts versus time in seconds from Performance Test 1. It represents the change in power input by the motors (Watts) over time (seconds). This figure shows that the time-control method has good controllability on the AEV. The code made the power of motor change greatly in a small time interval, meaning the AEV can be coded more precisely without disrupting the rest of the code. This also enables us to use the brake method instead of the coasting method as we want to control the sliding distance rigorously to make the AEV enter in the sensored distance at the gate, matching the requirements of reliable controllability.

Code

// Setup motors, go to the gate

motorSpeed(4,42);

goFor(3.8);

//Reverse the motors for braking to contole the sliding distance

reverse(4);

motorSpeed(4,35);

goFor(0.9);

reverse(4);

// Stop motors, wait for 7 seconds

 

motorSpeed(4,0);

goFor(10);

motorSpeed(4,40);

goFor(2);

brake(4);