Power Braking Code
// Run both motors at 45% power until the AEV reaches 5 feet = 123.077 marks
motorSpeed(4,45);
goToAbsolutePosition(123.077);
// Brakes, reverses both motors, accelerates both motors to 60% power and decelerates to 0 in 2.5 seconds.
brake(4);
reverse(4);
celerate(4,60,0,2.5);
Coasting Code
// Run both motors at 40% power until the AEV reaches 4 feet = 98.4615 marks
motorSpeed(4,40);
goToAbsolutePosition(98.4615);
// Shut off motors
brake(4);