Advanced R&D Lab Code

R&D 1 Both Back

motorSpeed(4, 35);  // set all motors at 35 power

goFor(3);  // run motors for 3 seconds

brake(4);  // brake all motors

goFor(5);  // brake for 5 seconds

motorSpeed(4, 25);  // set all motors to 25 power

goToAbsolutePosition(0);  // go to starting position

brake(4);  // brake all motors

 

R&D 1 Front and Back

reverse(1);  // reverse one motor

motorSpeed(4, 25);  // set all motors at 25 power

goFor(3);  // run motors for 3 seconds

brake(4);  // brake all motors

reverse(4);  // reverse all motors

motorSpeed(4, 20);  // set all motors to 20 power

goToAbsolutePosition(0);  // go to starting position

brake(4);  // brake all motors

 

R&D 2 Propeller config. Code

motorSpeed(4,25);  // set all motors to 25 power

goFor(2);  // run motors for 2 sec

brake(4);  // brake all motors

goFor(5);  // brake for 5 sec

reverse(4);  // reverse all motors

motorSpeed(4,25);  // set al motors to 25 power

goFor(2);  // run motors for 2 sec

brake(4);  // brake all motors