P R&D Day 2 Code

// Runs all motors at a 25% power for 2 seconds

motorSpeed(4,25);   goFor(2);

// Runs all motors at 20% power and travels a distance of 12 ft. from the starting point

motorSpeed(4,20);   goToAbsolutePosition(295);

// Reverses all motors

reverse(4);

// Runs all motors at 30% power for 1.5 seconds

motorSpeed(4,30);   goFor(1.5);

// Brakes all motors

brake(4);