Basic 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. For both motors to run, m should be set to 4.
Example from code: celerate(1,0,15,3); // accelerates motor 1 from 0% to 15% power in 3 sec
motorSpeed(m,p)
Initializes motor(s) m at percent power p. For both motors to run, m should be set to 4.
Example from code: motorSpeed(1,15); //initializes motor 1 at 15% power
goFor(t)
Runs the motor(s) at their initialized state for t seconds. For both motors to run, m should be set to 4.
Example from code: goFor(2); //runs the motors for 2 second
brake(m)
Brakes motor(s) m. Since the AEV has no breaks, this function just stops the motors from spinning. For both motors to stop, m should be set to 4.
Example from code: brake(1); //stops motor 1 from running
reverse(m)
Reverses the polarity of motor(s) m. To reverse the polarity for both motors, m should be set to 4.
Example from code: reverse(1); //reverses number 1
goToRelativePosition(n)
This command runs the previous command for n marks from the vehicle’s current position. This can be positive (moving forward) or negative (moving backwards). 0.4875 in = 1 mark
Example from code: goToRelativePosition(15); // moves 15 marks from the current position
goToAbsolutePosition(n)
This command runs the previous command for n marks relative to the overall starting position of the AEV. 0.4875 in = 1 mark
Example from code: goToAbsolutePosition(15); // moves to the position 15 marks from where the program began
<–Background                                                                                  Lab and Progress Reports–>