Glossary

Table 1

Arduino Function Calls

Term   Definition Example 
celerate (m,p1,p2,t);  Accelerates or decelerates the motors (m) from the starting speed (p1) to the ending speed (p2) in a certain amount of time (t).  celerate(2,60,10, 5); 

 

Decelerates motor 2 from 60% to 10% in 5 seconds. 

MotorSpeed (m,p);  Sets motors (m) to a certain power (p).  motorSpeed(1,25); 

 

Sets motor 1 to 25% power. 

goFor(t);  Runs the motors for a certain amount of time (t).  goFor(15);  

Runs the motors for 15 seconds. 

brake(m);  Stops the motors (m) from spinning.  brake(4);  

Cuts the power to all motors. 

reverse(m);  Reverses the way the motors (m) spin.  reverse(2);  

Reverses the way motor 2 was spinning. 

goToRelativePosition(n);  Continues the previous command for a certain amount of marks (n). Positive numbers = forwards, negative numbers = backwards.  motorSpeed(2,32); 

goToRelativePosition(41); 

 

Motor 2 is at 32% power until it reaches mark 41. 

goToAbsolutePosition(n);  Continues the previous command for a certain amount a marks (n) relative to the starting position of  the AEV’s starting point.  motorSpeed(2,32); 

goToAbsolutePosition(155); 

 

Motor 2 is at 32% power until it reaches mark 155 from its starting point.