Appendix A

Appendix

Code

 celerate(4,1,25,3); //accelerate the speed of AEV

 motorSpeed(4,25); // run AEV in constant speed

 goFor(1); // keep running for 1 sec

 motorSpeed(4,20); // change speed to 20

 reverse(4); // reverse both propeller

 motorSpeed(4,25); // change speed back to 25

 goFor(2); // keep running for 2 sec

 brake(4); // brake both propeller

 

Additional Questions

After upgrading commands of Arduino the AEV running on the track are balanced. The AEV was built in T-shape vertically. The Arduino was built on one side and battery on the other. When AEV went through the corner or the track, it swayed a little but did not influenced much. The speed of AEV when going through the corner of the track could be decelerated and back to normal.