Lab 10

The second performance test was conducted during lab week 10.  This required the AEV to trigger the gate, travel through the gate, pick up the caboose, trigger the gate again, and then finally travel through the gate (“Advanced Research and Development and Performance Tests,” 2017).

 

Code Used:

reverse(4);
motorSpeed(4,30);
goToAbsolutePosition(-222);
brake(4);
motorSpeed(4,1);
goFor(3);

// power brake
reverse(4);
motorSpeed(4,15);
goFor(1);

//pause for 7 seconds then go again
reverse(4);
brake(4);
motorSpeed(4,0);
goFor(7);
motorSpeed(4,32);
goFor(3);

// grab caboose
motorSpeed(4,0);
goFor(5);
reverse(4);
motorSpeed(4,15);
goFor(1);

//pause and head back
motorSpeed(4,0);
goFor(5);
motorSpeed(4,40);
goToAbsolutePosition(-495);
motorSpeed(4,0);
goFor(3);