Code Used:
Lab 1: The team gained practice with coding and running the AEV. The following code was used in Lab 1.
celerate(1,0,15,2.5);
goFor(1);
brake(1);
celerate(2,0,27,4);
goFor(2.7);
celerate(2,27,15,1);
brake(2);
reverse(2);
celerate(4,0,35,2);
goFor(1);
brake(2);
goFor(3);
brake(4);
goFor(1);
reverse(1);
celerate(1,0,19,2);
motorSpeed(2,35);
goFor(2);
motorSpeed(2,19);
goFor(2);
celerate(4,19,0,3);
brake(4);
Lab 2: The following code was used for the first time in Lab 2. It checked reflectance sensor functionality.
motorSpeed(4,25);
goFor(2);
motorSpeed(4,20)
goToAbsolutePosition(295.38);
reverse(4);
motorSpeed(4,30);
goFor(1.5);
brake(4);
Lab 3: The team used the following code to run the AEV and extract the power, distance, and time data from the Arduino. All of the data was analyzed using MATLAB and Excel.
celerate(4,0,25,3);
goFor(1);
motorSpeed(4,20);
goFor(2);
reverse(4);
motor(4,25);
goFor(2);
brake(4);