Programming Basics

Basic Audrino Function Calls

celerate(m,p1,p2,t);

  • Accelerates or decelerated motor(s) from start speed (in %) p1 to end speed (in %) p2 over a frame of t seconds

motorSpeed(m,p);

  • Initializes motor(s) m at power (in %) p

goFor(t);

  • Runs the motor(s) at their initialized state(s) over a frame of t seconds

brake(m);

  • Brakes motor(s) m
  • Doesn’t brake AEV, just the motors

reverse(m);

  • Reverses the polarity of motor(s) m

goToRelativePosition(n);

  • Continues the previous command for n marks from the vehicle’s current position
  • Can be a negative or a positive value

goToAbsolutePosition(n);

  • Continues the previous command for n marks from the vehicle’s original position

reflectanceSensorTest();

  • Initializes a test to ensure the sensors are working properly