pR&D 2 Code

Preliminary Research and Development Part 2 Code


motorSpeed(4,35);    // Speed up all motors to 35 

goFor(2);    // Go for 2 seconds

motorSpeed(4,30);    // Change all motors to speed 30

goToAbsolutePosition(295);    // Go to position 295 on track

reverse(4);    // Reverse all motors

motorSpeed(4,30);    // Change motor speed to 30

goFor(1.5);  // Go for 1.5 seconds

brake(4);    // Brake all motors