P R&D Day 3 Code

// Reverses all motors

reverse(4);

// Accelerates all motors from start to 25% in 3 seconds

celerate(4,0,25,3);

// Run all motors at 25% for 1 second

goFor(1);

// Run all motors at 20% power for 2 seconds

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

// Reverses all motors

reverse(4);

// Runs all motors at 25% for 2 seconds

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

// Brakes all motors

brake(4);