Motor Configuration 1 Backwards:
reverse(4);
//reverse all motors
motorSpeed(4,30);
//set both motors to 30 percent power
goFor(4);
//go for 4 seconds
motorSpeed(4,0);
//brake all motors
goFor(10);
Motor Configuration 2 Forwards:
reverse(4);
//reverse all motors
motorSpeed(4,30);
//run all motors at 30 percent power
goFor(4);
//go for 4 seconds
motorSpeed(4,0);
//brake all motors
goFor(10);
Motor Configuration 2 Backwards:
motorSpeed(4,35);
//set motors to 35 percent power
goFor(4);
//go for 4 seconds
motorSpeed(4,0);
//brake all motors
goFor(10);
Motor Configuration 3 Forwards:
reverse(1);
//reverse all motors
motorSpeed(4,38);
//set motor speeds to 38
goFor(2);
//go for 2 seconds
motorSpeed(4,0);
//brake all motors
goFor(10);
Motor Configuration 3 Backwards:
reverse(2);
//reverse all motors
motorSpeed(4,38);
//set motors to 38 percent power
goFor(3.5);
//go for 3.5 seconds
motorSpeed(4,0);
//brake all motors
goFor(10);
Motor Configuration 4 Forwards:
reverse(4);
//reverse all motors
motorSpeed(4,30);
//set motors to 30 percent power
goFor(3.5);
//go for 3.5 seconds
motorSpeed(4,0);
//brake all motors
goFor(10);
Motor Configuration 4 Backwards:
motorSpeed(4,30);
//set motor speeds to 30
goFor(3.5);
//go for 3.5 seconds
motorSpeed(4,0);
//brake all motors
goFor(10);