PgrmBasics

//This program is used to gain familiarity with the AEV Commands.

  //Accelerate motor 1 from 0% to 15% power in 2.5 seconds.
  celerate(1, 0, 15, 2.5);

  //Run motor 1 at 15% for 1 second, then stop.
  motorSpeed(1, 15);
  goFor(1);
  brake(1);

  //Accelerate motor 2 from 0% to 27% in 4 seconds.
  celerate(2, 0, 27, 4);
  
  //Run the motor at 27% for 2.7 seconds.
  motorSpeed(2, 27);
  goFor(2.7);

  //Decelerate motor 2 from 27% to 15% in 2.7 seconds.
  celerate(2, 27, 15, 2.7);

  //Stop motor 2.
  brake(2);

  //Reverse motor 2.
  reverse(2);

  //Accelerate both motors from 0% to 31% in 2 seconds.
  celerate(4, 0, 31, 2);

  //Run both motors at 35% for 1 seconds.
  motorSpeed(4, 35);
  goFor(1);

  //Stop motor 2.
  brake(2);

  //Wait 3 seconds then stop motor 1.
  goFor(3);
  brake(1);

  //Wait for 1 second.
  goFor(1);
  //Reverse motor 1.
  reverse(1);

  //Accelerate motor 1 from 0% to 19% in 2 seconds.
  celerate(1, 0, 19, 2);
  
  //Run motor 2 at 35% and motor 1 at 19% for 2 seconds.
  motorSpeed(2, 35);
  motorSpeed(1, 19);
  goFor(2);

  //Run both motors at 19% for 2 seconds.
  motorSpeed(4, 19);
  goFor(2);

  //Decelerate both motors from 19% to 0% in 3 seconds, then brake.
  celerate(4, 19, 0, 3);
  brake(4);