// Accelerates motor one from start to 15% power in 2.5 seconds, runs motor
// one at 15% power for 1 second, and then brakes motor one
celerate(1,0,15,2.5);
motorSpeed(1,15);
goFor(1);
brake(1);
// Accelerate motor two from start to 27% power in 4 seconds, runs motor two
// at a 27% power, for 2.7, decelerate motor two to 15% power in 1 second,
// and the brakes motor two
celerate(2,0,27,4);
motorSpeed(2,27);
goFor(2.7);
celerate(2,27,15,1);
brake(2);
// Reverses the direction of motor 2, acceleratea all motors from start to
// 31% power in 2 seconds, runs all motors at 35% power for 1 second,
// brakes motor two but keep motor one running at 35% power, for 3 seconds,
// and then brakes all motors for 1 second
reverse(2);
celerate(4,0,31,2);
motorSpeed(4,35);
goFor(1);
brake(2);
goFor(3);
brake(4);
goFor(1);
// Reverses the direction of motor one, accelerates motor one from start to
// 19% power in 2 seconds, runs motor one at 19% power while simultaneously
// running motor two at 35% power for 2 seconds, and then runs both motors
// at 19% power for 2 seconds
reverse(1);
celerate(1,0,19,2);
motorSpeed(1,19);
motorSpeed(2,35);
goFor(2);
motorSpeed(4,19);
goFor(2);
// Decelerates both motors to 0% power in 3 seconds and then brakes all
// motors
celerate(4,19,0,3);
brake(4);