celerate(m,p1,p2,t);
Accelerate the selected motors “m” from power level “p1” to power level “p2” in “t” seconds. A motor value “m” of 4 will affect all motors. Pauses execution until the final power value is reached.
motorSpeed(m,p);
Sets the motors “m” to power level “p”. A motor value “m” of 4 will affect all motors. Does not pause execution.
goFor(t);
Pauses the program at it’s current state for a time “t” seconds. Those functions used previously will continue to have effect on the AEV in their final states. This function is useful in conjunction with the functions motorSpeed, celerate, and brake. These functions modify motor speeds, and when used directly prior to this function will hold those speeds for the specified amount of “t” time.
brake(m);
Turns off motors “m”. A motor value “m” of 4 will affect all motors. Does not stop the AEV, but allows the AEV to coast if there is any remaining inertia.
reverse(m);
Reverses motor “m”. A motor value “m” of 4 reverses all motors. Reversing a motor means that giving positive power to this motor will cause it to rotate in the opposite direction.
goToRelativePosition(n);
Uses the reflectance sensors to move the AEV a specified “n” number of marks. Works similarly to the goFor function and holds the previous motor speed(s) constant until traveling “n” ticks.
goToAbsolutePosition(n);
Uses the reflectance sensors to move the AEV to a specified position, measured in “n” marks. As opposed to the goToRelativePosition function, this function moves the AEV to a location on the track rather than moving it a certain distance from where it started. Similar to goToRelativePosition, this function will hold the previous motor speed(s) constant until arriving at the specified position.