Basic Code A

Code Key:

celebrate(m,p1,p2,t);     : accelerates or decelerates motor or motors(m) from start percentage(p1) to end percentage(p2) in a set amount of time(t).

motorSpeed(m,p);     : starts motor or motors(m) at a power percentage(p).

goFor(t);     : runs the motor or motors at their current state for a certain amount of time(t).

brake(m);     : stops motor or motors(m).  Does not stop vehicle, only motors.

reverse(m);     : reverses the polarity of the motor or motors(m).

goToRelativePosition(n);     : continues previous commands for a set length(n) from current position.  Length could also be negative.

goToAbsolutePosition(n);     : continues previous commands for a set of length(n) from start position.  Length could also be negative.

 

*All commands must be concluded with a ;

**All commands are case sensitive.