Labs 11-12

During lab weeks 11 and 12, Team O worked to complete the final performance test of the AEV.  This essentially completes the mission of the AEV.  This involves the AEV traveling down, getting the caboose, and returning to the starting point.  Also, the gate must successfully be triggered twice with the AEV not hitting the gate at any point (“Advanced Research and Development and Performance Tests,” 2017).

 

Code Used:

reverse(4);
  motorSpeed(4,30);
  goToAbsolutePosition(-225);
  brake(4);
  motorSpeed(4,1);
  goFor(3);
  // power brake
  reverse(4);
  motorSpeed(4,13);
  goFor(1);
  //pause for 7 seconds then go again
  reverse(4);
  brake(4);
  motorSpeed(4,0);
  goFor(7);
  motorSpeed(4,35);
  goFor(2);
// grab caboose
  motorSpeed(4,0);
  goFor(9);
  reverse(4);
  //pause and head back
  motorSpeed(4,0);
  goFor(5);
  motorSpeed(4,40);
  goToAbsolutePosition(-472);
  motorSpeed(4,0);
  goFor(1);
  // power brake
  reverse(4);
  motorSpeed(4,35);
  goFor(1);
  reverse(4);
  motorSpeed(4,0);
  goFor(9);
  motorSpeed(4,45);
  goFor(3);
  motorSpeed(4,0);
  goFor(2);
  reverse(4);
  motorSpeed(4,42);
  goFor(2);