Functions Glossary

 

Exercise #1

Function Description
motorSpeed(motor #, percentage); Runs the specified motor at a power specified by the percentage.

 

goFor(time); Specifies the amount of time in seconds, the previous function should run.

 

celerate(motor #, initial, final, time); Accelerates or decelerates the specified motor from an initial power to a final power percentage. time determines how long the process should take.

 

brake(motor #); Sets the power of the specified motor to zero.

 

reverse(motor #); Reverses the direction that the specified motor spins.

 

motor # : 4 Input “4” into motor # to specify all motors.