MATLAB Code Associated with the Plot
Figure Output of the Plot
Description of the Plot
From 0 to 3 seconds (0 to ~0 marks) the motors accelerated from 0% to 25% power (50% total).
From 3 to 4 seconds (~0 to ~8 marks) the motors stayed at 25% power (50% total).
From 4 to 6 seconds (~8 to ~34 marks) the motors went straight to 20% power (40% total).
From 6 to 8 seconds (~34 to ~37 marks) the motors reversed and went straight to 25% power (50% total).
At 8 seconds, the motor brakes were applied, having the vehicle slow to a stop within milliseconds.