Day 1

// Accelerates motor one from start to 15% power in 2.5 seconds.

celerate(1,0,15,2.5);

// Run motor one at a constant speed (15% power) for 1 second

goFor(1);

// Brake motor one

brake(1);

// Accelerate motor two from start to 27% power in 4 seconds.

celerate(2,0,27,4);

//Motor two at constant speed (27% power) for 2.7 seconds.

goFor(2.7);

// Decelerate motor two to 15% power in 1 second.

celerate(2,27,15,1); // Brakes motor two. brake(2);

// Reverses direction of motor two.

reverse(2);

// Accelerates all motors from start to 31% power in 2 seconds.

celerate(4,0,31,2); // Goes for 1 seconds. goFor(1);

// Brakes motor two.

brake(2);

// Motor one keeps running at a constant speed (35% power) for 3 seconds.

goFor(3);

// Brakes motor one.

brake(1);

// Reverses motor one.

reverse(1);

// Accelerates motor one from start to 19% power in 2 seconds.

celerate(1,0,19,2);

// Motor two goes to 35% power.

motorSpeed(2,35);

// Motor one goes to 19% power.

motorSpeed(1,19);

// Goes for 2 seconds.

goFor(2);

// Motor one goes to 19% power.

motorSpeed(1,19);

// Goes for 2 seconds.

goFor(2);

// Decelerates all motors from 19% power to 0% in 3 seconds.

celerate(4,19,0,3);

// Brakes all motors.

brake(4);