Exercise 4 Graphs

Lab 4 Data Analysis Tool Code (CSS1):

celerate(4,0,25,3);

motorSpeed(4, 25);

goFor(1);

motorSpeed(4,20);

goFor(2);

reverse(4);

motorSpeed(4,25);

goFor(2);

brake(4);

 

Supplied Power Vs. Time Graph

Supllied Power Vs. Distance Graph

The power on each graph in on the y axis ranging from 0-10 watts. The time on the first graph is on the x axis ranging from 0-12 seconds.The distance on the first graph is on the x axis ranging from 0-1 meters. The code shows all motors accelerating in 3 seconds from 0-25% power. They then run for 25% speed for a second, then drop down to 20% power and run at that for 2 seconds. The motors are then reversed, as seen by the spike in power, then run at 25% power for 2 seconds. The motors then stop, as seen by the 0 power in the graph.