This is the glossary of the Arduino programming function calls.
celerate(m, p1, p2, t)
Accelerates or decelerates motor(s) m from start speed (%) p1 to end speed (%) p2 over a duration of t seconds.
Four arguments:
m: Motor number 1, 2, 3. And 4 is for all motors.
p1: Motor start speed in %, ranging from 0 to 100.
p2: Motor end speed in %, ranging from 0 to 100.
t: Time of acceleration or deceleration duration in seconds.
motorSpeed(m, p)
Initializes the motor(s) m at percent power p.
Two arguments:
m: Motor number 1, 2, 3. And 4 is for all motors.
p: Initialized motor speed in percent power.
goFor(t)
Runs the motor(s) at their initialized state for t seconds.
One argument:
t: Motor running time in seconds.
brake(m)
Brakes motors(s) m. This function directly brakes the motors, not the AEV.
One argument:
m: Motor number 1, 2, 3. And 4 is for all motors.
reverse(m)
Reverses the polarity of motor(s) m.
One argument:
m: Motor number 1, 2, 3. And 4 is for all motors.
goToRelativePosition(n)
Continues the previous command for n marks from the vehicle’s current position.
One argument:
n: The relative destination position in marks. It can either be positive, which means the vehicle is moving forward, or negative, which means the vehicle is moving backward.
goToAbsolutePosition(n)
Continues the previous command for n marks from the overall starting position.
One argument:
n: The absolute destination position in marks. Rather than a relative position argument, this argument specifies an absolute position from the overall starting position.