Graphs:
This is a Energy vs. Time graph for the AEV on the straight track
This is a Energy vs. Distance graph for the AEV on the straight track
Graph Explanation:
For the first three seconds of the graph, all the motors are accelerating from 0% power to 25% power. Then, all the motors hold at 25% power for one second. After that, all the motors are set for 20% power for two seconds. Next, the rotation of both motors is reversed. Both motors are then set for 25% power for two seconds. Finally, all motors are stopped.
Data Analysis Tool Lab- CSS1
// reverses all motors
reverse(4);
//accelerates all motors from 0 to 25 over 3 seconds
celerate(4,0,25,3);
//sets all motors to 25% power
motorSpeed(4,25);
//runs previous line for 1 second
goFor(1);
//sets all motors to 20% power
motorSpeed(4,20);
//runs the previous line for 2 seconds
goFor(2);
//reverses all motors
reverse(4);
//sets all motors at 25% power
motorSpeed(4,25);
//runs previous line for 2 seconds
goFor(2);
//brakes all motors
brake(4);