Data Analysis Tool

Code Used for Data Analysis:

celerate(4,0,25,3);

motorSpeed(4,25);

goFor(1);

motorSpeed(4,20);

goFor(2);

reverse(4);

motorSpeed(4,25);

goFor(2);

brake(4);

Both the Power v. Time and Power v. Distance graphs use the same code as seen above. Therefore, the graphs have very similar plots lines. From when the program starts the AEV accelerates the motors from stationary to 25% power. They then run at 25% for one second and 20% for two seconds. After three seconds (about 0.8 meters) the motors reverse polarity and run at 25%, this requires the most power of the code to quickly get the motors up to speed. Then at five seconds (about 1.5 meters traveled), the motors stop receiving power and the motors come to a stop.