celerate(1,0,15,2.5); — Accelerates motor one from 0% to 15% power in 2.5 seconds
goFor(1); — Keeps motor running at 15% power for 1 second
brake(1); — Brakes motor 1
celerate(2,0,27,4); — Accelerates motor two from 0% to 27% power in 4 seconds
goFor(2.7); — Keeps motor two running at 27% power for 2.7 seconds
celerate(2,27,15,1); — Decelerates motor two from 27% power to 15% power in 1 second
brake(2); — Brakes motor 2
reverse(2); — Reverses direction of motor two
celerate(4,0,31,2); — Accelerates all motors from 0% to 31% power in 2 seconds
motorSpeed(4,35); — Runs all motors at a constant speed of 35% power for 4 seconds
goFor(1); — Keeps all motors running at 35% power for 1 second
brake(2); — Brakes motor 2
goFor(3); — Keeps motor one running at 35% power for 3 seconds
brake(4); — Brakes all motors
goFor(1); — Brakes all motors for 1 second
reverse(1) — Reverses direction of motor one
celerate(1,0,19,2); — Accelerates motor one from 0% to 19% power in 2 seconds
motorSpeed(2,35); — Runs motor two at 35% power
goFor(2); — Keeps motor one at 19% power and motor two at 35% power for 2
seconds
motorSpeed(4,19); — Runs all motors at a constant speed of 19% power
goFor(2); — Keeps all motors running at 19% power for 2 seconds
celerate(4,19,0,3); — Decelerates all motors from 19% to 0% power in 3 seconds
brake(4); — Brakes all motors
Above: A graph of Power vs Time recorded during the execution of the code above
Summary of Code: The above code was used to test the input power for the AEV when the motors are running.