Code for Exercise 3

During the lab 3, we ran our AEV on the track with the following code in order to determine its initial performance. Based on the varying trials with the motor running at different power rates, we were able to extract data and plot graphs that better described the sample AEV’s performance. We can then move to planning designs that optimize the AEV’s efficiency.

 motorSpeed(4,50); //Runs all motors at 25% power
 goFor(4); //motors run for 2 seconds

 reverse(4); //Reverse motor polarity of all motors
 motorSpeed(4,50); //Runs all motors at 30% power
 goFor(4); //Runs motors for 1.5 seconds

 brake(4); //Brakes all motors