Lab 7 – Design Analysis Tool

Description of Code: A slightly modified version of the previous lab’s code. This time, the motor do not run for as long of a time and there is also isn’t a reverse statement at the end to act as a brake for the AEV.


//reverse all motors

reverse(4);

 

//all motors @ constant speed 25% for 2 seconds

motorSpeed(4,25);

goFor(2);

 

//motors run at 20% for less than 13.5 feet in order to coast the rest

 

motorSpeed(4,20);

goToAbsolutePosition(182.3);

 

//brake all motors

brake(4);