The code below was created with a desired travel distance of 14 feet:
motorSpeed(4,30); //All motors power at 30%
goFor(2); //All motors will run at 30% power for 2 seconds
motorSpeed(4,25); // All motors go to 25% power
//The AEV is going to the Waves
goToAbsolutePosition(246); //The AEV will go about 12 feet
reverse(4); //All the motors will go in reverse
motorSpeed(4,25); //All motors go to 25% power
goFor(2); //All the motors will remain at 25% power for 2 seconds
brake(4); //All motors will turn off
goFor(1); //All the motors will remain off for 1 seconds
motorSpeed(4,35); //All motors go to 35% power
goToRelativePosition(-98); //All motors will move about 2 feet
brake(4); //All motors turn offÂ