Code Basics

  • celerate(m,p1,p2,t);
    • Function:  Accelerates or decelerates motor(s) m from start speed (%) p1 to end speed (%) p2 over a duration of t seconds
  • motorSpeed(m,p);
    • Function:  Initializes motor(s) m at percent power p
  • goFor(t);
    • Function:  Runs the motor(s) at their initialized state for t seconds
  • brake(m);
    • Function: brakes motor(m)
  • reverse(m);
    • Function: reverses the polarity of motor(s) m
  • goToRelativePosition(n)
    • Function:  Continues the previous command for n marks from the vehicle’s current position. n can be positive or negative, with positive meaning the vehicle is moving forward, negative meaning the vehicle is moving backward
  • goToAbsolutePosition(n);
    • Function: Continues the previous command for n marks relative to the overall starting position of the AEV