Programming Commands Glossary


celerate

void 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. 
Parameters:
m– An integer representing motors 1-3. 4 is for all motors
p1– An integer representing the initial motor speed, in percent.
p2– An integer representing the ending motor speed, in percent.
t– the duration of time in which the motor drops from p1 to p2

motorSpeed

void motorSpeed(m, p)
Initializes motors(s) m at p power. 
Parameters:
m– An integer representing motors 1-3. 4 is for all motors
p– An integer representing the initial motor speed, in percent.

goFor

void goFor(t)
Runs motors at initialized state for t seconds. 
Parameters:
t– An integer representing time, in seconds.

brake

void brake(m)
Brakes motor(s) mNote: Does not imply that the AEV stops, just the motors. 
Parameters:
m– An integer representing motors 1-3. 4 represents all motors.

reverse

void reverse(m)
Reverses the polarity of motor(s) m
Parameters:
m– An integer representing motors 1-3. 4 represents all motors.

goToRelativePosition

void goToRelativePosition(n)
Continues the command for n marks from the vehicle’s current position. 
Parameters:
n– An positive or negative integer that represents the number of marks (1 mark ~ .4875 in) from the AEV’s current position. Positive n implies forward, and negative n implies backwards.

goToAbsolutePosition

void goToAbsolutePosition(n)
Continues the command for n marks from the vehicle’s starting position. 
Parameters:
n– An positive or negative integer that represents the number of marks (1 mark ~ .4875 in) from the AEV’s starting position. Positive n implies forward, and negative n implies backwards.

Source Documentation adpated from the “Advanced Energy Vehicle Design Project Lab Manual: Preliminary Research and Design”