Lab #4 Code

//Reverse the initial motors to make the motors go forward.
reverse(4);

//1. Accelerate all motors from start to 25% in 3 seconds.
celerate(44,0,25,3);

//2. Run all motors at a constant speed (25% power) for 1 second.
motorSpeed(4,25);
goFor(1);

//3.Run all motors at 20% power for 2 seconds.
motorSpeed(4,20);
goFor(2);

//4. Reverse all motors.
reverse(4);

//5. Run all motors at a constant speed (25% power) for 2 second.
motorSpeed(4,25);
goFor(2);

//6. Brake all motors.
brake(4);

//7. Save the program as CSS1.