Arduino Function Calls Glossary

This page gives a brief explanation of all function calls used throughout our Arduino codes.

Since there are two motors, the number 4 is used to apply a function call to both motors.

celerate(m,p1,p2,t);

accelerates or decelerates motor(s) m from % power p1 to % power p2 through a period of t seconds.

motorSpeed(m,p);

starts motor(s) m at % power p

goFor(t);

runs motor(s) at their current state for t seconds

brake(m);

Stops motor(s) m

*does not brake the AEV, only stops the motors

reverse(m);

reverses motor(s) m at the same power, just in opposite direction

goToRelativePosition(n);

continues the previous command for n marks from the AEV’s current position, where 1 mark is 0.4875 inches. n can also be negative, which applies to the AEV moving in reverse

goToAbsolutePosition(n);

continues the previous command for n marks from the AEV’s starting position