Lab 6 – System Analysis 2

Description of code: Runs the AEV on the inside track. This is a sample code in the AEV Lab Manual that was given in order to have practice calculating EEPROM data.


 //reverse all motors

 reverse(4);

 

 //all motors @ constant speed 25% for 2 seconds

 motorSpeed(4,25);

 goFor(2);

 

 //motors run at 20% for 13.5 ft

 motorSpeed(4,20);

 goToAbsolutePosition(332.3);

 

 //reverse all motors

 reverse(4);

 

 //all motors @ 30% speed for 1 second

 motorSpeed(4,30);

 goFor(1);

 

 //brake all motors

 brake(4);