Glossary of Basic Arduino Function Calls
celerate(m,p1,p2,t): Changes the rate at which the car’s speed is changing. Choose one of the motors (or both by using the number 4) and put its number in for m. Then, pick a beginning speed for p1 and and ending speed for p2, and the car will accelerate/decelerate from the old speed to the new speed. This will happened over the time entered, or the number entered for t.
goFor(t): The motors will run for whatever time you put in for t.
brake(m): This command stops the indicated motor from running. That means that the AEV might not necessarily stop with the motors immediately.
reverse(m): This command changes the direction that the propeller of the indicated motor spins, resulting in a change of the direction of the car on that side.
goToRelativePosition(n): This command makes the previous command continue until the car moves a certain number of marks, indicated by n, from the car’s current position. The number for n would be positive for moving forward and negative for moving backwards.
goToAbsolutePosition(n): This command also continues the previous command for n marks, except this time the marks indicated by n are absolute position, or the amount of marks from the starting point of the car.