Lab 1

Glossary of AEV Functions

Function Description Example
celerate(m, p1, p2, t) Accelerates motor m (4 for all motors) from p1 to p2 over t seconds. celerate(1, 0, 25, 5); Accelerates motor 1 from 0% power to 25% power in 5 seconds
motorSpeed(m, p)  Initializes motor(s) m at p speed.  motorSpeed(1, 10); Sets motor 2 to 10% power.
 goFor(t)  Runs the motors for t seconds.  goFor(7); Runs the motors for 7 seconds.
 brake(m)  Stops motor(s) m.  brake(2); Brakes motor 2.
 reverse(m)  Reverses the direction of motor(s) m.  reverse(4); Reverses all motors.
 goToRelativePosition(n)  Goes n marks from the AEV’s current position. Negative is backwards.  goToRelativePosition(42); Moves the AEV 42 marks from its current position.
 goToAbsolutePosition(n)  Goes to n marks from the starting position.  goToRelativePosition(42); Moves the AEV to 42nd mark from where it started.