Function Call | Function | Example |
celerate(m,p1,p2,t); | Accelerates or decelerates motor m from start speed p1 to end speed p2 over t seconds | celerate(2,25,50,3); |
Accelerates motor 2 from 25% to 50% power in 3 seconds | ||
motorSpeed(m,p); | Sets motor m to percent power p | motorSpeed(1,15); |
Set motor 1 to speed 15% | ||
goFor(t); | Runs the motors at their set speed for t seconds | goFor(3); |
Run the motors at their set speed for 3 seconds | ||
brake(m); | Brakes motor m | brake(1); |
Cuts the power to motor 1 | ||
reverse(m); | Reverses the direction of the motor m | reverse(4); |
Reverses the direction of both motors | ||
goToRelativePosition(n); | Continues the command for n marks from the current position of the vehicle | goToRelativePosition(20); |
The AEV will continue to run until it reaches 20 marks from its current position. | ||
goToAbsolutePosition(n); | Continues the command for n marks relative to the overall starting position of the AEV | goToAbsolutePosition(200); |
The AEV will continue to run until it reached 200 marks from its starting position |
Refer to Reference page for information on Arduino code source