Glossary of Ardiuno Function Calls

The programming for the AEV is done using Arduino IDE software. The software has already been set up such that certain function calls can be used when writing a program that controls the AEV, and these function calls are listed below.

 


celerate(m,p1,p2,t);

Accelerates or decelerates motor m from percent power p1 to percent power p2 over a duration of t seconds


motorSpeed(m,P);

Initializes motor m at percent power p


goFor(t);

Runs the motor at its initialized state for t seconds


brake(m);

Stops motor m


revese(m);

Reverses the polarity of motor m


goToRelativePosition(n);

Continues the previous initializing for n marks from the vehicle’s current position


goToAbsolutePosition(n);

Continues the previous command for n marks in respect to the vehicle’s original starting position