Code Glossary Team N

 ⚙ Code Glossary ⚙

This table gives insight into what Arduino Code functions can be used for and the specific performance they yield when they are executed. Listed below are the seven (common) commands that can be used in Arduino code, and their corresponding action for the AEV. Note that each function call ends with a semicolon (;).

Function Call

Function

motorSpeed(m,p);

Runs motor(s) m at p percent power

celerate(m,p1,p2,t);

Accelerates or decelerates motor(s) m from start speed p1 % to final speed p1 percent over a duration of t seconds

goFor(t);

Runs motor(s) at their previously called state for t seconds

brake(m);

Brakes motor(s) m

reverse(m);

Reverses the polarity motor(s) m

goToRelativePostition(n);

Continues the previously called command for n marks from the vehicle’s CURRENT position

goToAbsolutePosition(n);

Continues the previously called command for n marks relative to the OVERALL starting position