Exercise 2

//Run both motors at 25% power for 2 seconds

motorSpeed(4,25);

goFor(2);

// Run both motors at 20% power

motorSpeed(4,20);

//Make AEV go 12 feet from initial position

goToAbsolutePosition(12);

//Reverse both motors

reverse(4);

//Run both motors at 30% power for 1.5 seconds

motorSpeed(4,30);

goFor(1.5);

//Brake both motors

brake(4);