Exercise Three

In the Power vs Distance graph, it is just a straight line because the sensors were not working so no distance was recorded. But based off the power data, as the speed increased so did the power. When it was constant speed, power was relatively constant.

In the Power vs Time graph,  as time increased to around three seconds so did the power and this was when the AEV was accelerating. Once it had accelerated for three seconds we made it hold a constant speed at 30% power for one second. Then from 4-6 seconds it was moving at a constant speed of 25% power. The spike in energy was because of the reverse of the motors into the opposite spin. After the spike until 8 seconds was a constant power of 25% then the power was cut.

celerate(4,0,25,3);

motorSpeed(4,25);
goFor(1);

motorSpeed(4,20);
goFor(2);

reverse(4);

motorSpeed(4,25);
goFor(2);

brake(4);\