Exercise 1 Code

This code was used to practically test the function calls on the AEV.

```celerate(1,0,15,2.5); // accelerating motor one from 0% to 15% in 2.5 seconds
motorSpeed(1,15); // running motor at speed 15%
goFor(1); // running motor speed for 1 seconds
brake(1); // brakes motor 1

celerate(2, 0, 27, 4); // accelerates motor 2 from 0 to 27% power in 2.7 seconds
motorSpeed(2, 27); // runs motor 2 at 27% for 2.7 seconds
goFor(2.7);
brake(2); // brakes motor 2

reverse(2); // reverse direction of motor 2
celerate(4,0,31,2); // accelerates all motors to 31% in 2 seconds
motorSpeed(4,35); // runs all motors at a speed of 35% for 1 second
goFor(1);
brake(2); //brake motor 2
goFor(3); // continue to run motor 1 at constant speed 35% for 3 seconds
brake(4); // brake all motors for 1 second
goFor(1);
reverse(1); // reverse direction of motor 1
celerate(1,0,19,2); // accelerates motor 1 from start to 19% in 2 seconds
motorSpeed(2,35); // run motor 2 at constant speed 35% for 2 seconds
motorSpeed(1,19); // run motor 1 at constant speed of 19% for 2 seconds
goFor(2);
motorSpeed(4,19); // runs all motors at 19% for 2 seconds
goFor(2);
celerate(4,19,0,3); // decelerate all motors from 19% to 0 in 3 seconds
brake(4); // brake all motors
```