Data Analysis Tool

The data analysis tool is used to help collect data from different AEV runs. Using this tool we can collect different data by testing different scenarios with new codes. From the data collected we can plot Power vs. Time and Power vs. Distance graphs as shown below.

Power vs. Time

This graph shows the power used over a certain amount of time. From 0 seconds to approximately 2.1 seconds the AEV was gradually increasing its speed. After the AEV kept the same speed until approximately 3.8 seconds. Then the AEV travels at a slower speed for 2 seconds. Then travels in reverse for another 2 seconds before braking.

Power vs. Distance

This graph shows the power used over a certain amount of distance. From start the AEV is accelerating  then it travels at a constant speed for approximately 1 meters. Then the AEV revers direction and starts decelerating until it reaches approximately 2.3 meters and travels at a constant speed until 3.4 meters before braking.

 

Data Analysis Tool Code

1. Accelerate all motors from 0% to 25% in 3 seconds

celerate(4,0,25,3);

2. Run all motors at a constant speed of 25% power for 1 second.

motorSpeed(4,25);
goFor(1);

3. Run all motors at a constant speed of 20% power for 2 seconds.
motorSpeed(4,20);
goFor(2);

4. Reverse the motors
reverse(4);

5. Run all motors at a constant speed of 25% power for 2 seconds.
motorSpeed(4,25);
goFor(2);

6. Brake all motor
brake(4);