Coding Functions

Basic Code:

celebrate(m,p1,p2,t); – Accelerates or decelerates the motor(s) m from starting speed (%) p1 to ending speed (%) p2 over a duration of t seconds.

motorSpeed(m,p); – Sets motor(s) m to a percent power p.

goFor(t); – Runs the motors at their set state for t seconds.

brake(m); – Brakes motor(s) m.

reverse(m); – Reverse the polarity of motor(s) m.

goToRelativePosition(n); – goes to a set position n marks away from the AEV’s current position.

goToAbsolutePosition(n); – Goes to a set position n marks away from the AEV’s starting position.