Lab 05 Code

reverse(4); // reverse motors to temporarily fix the incorrect wiring

celerate(4,0,25,3); // over 3 seconds accelerate to 25 speed on all motors

goFor(1); // go this speed for 1 second

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

goFor(2); // go this speed for 2 seconds

reverse(4); // reverse the direction of all motors

motorSpeed(4,25); // set the speed to 25 on all motors

goFor(2); // go this speed for 2 seconds

brake(4); // brake all motors