Here you can see a cheat sheet with all the most commonly used commands. There are advanced commands that are not included in the integrated API, but the commands that are included cover most, if not all, of the students' needs.
To access the full video please subscribe to FLLCasts.com
- #2589
- 24 Feb 2026
Here is an example definition of a function and an explanation on how to read it:
move_for_degrees(pair: int, degrees: int, steering: int, *, velocity: int = 360, stop: int = motor.BRAKE, acceleration: int = 1000, deceleration: int = 1000) → Awaitable
...
Parameters
pair: int
The pair slot of the Motor Pair.
degrees: int
The number of degrees
steering: int
The steering (-100 to 100)
Optional keyword arguments:
velocity: int
The velocity in degrees/sec
...
stop: int
The behavior of the Motor after it has stopped. Use the constants in the motor module.
...
acceleration: int
The acceleration (deg/sec²) (1 - 10000)
deceleration: int
The deceleration (deg/sec²) (1 - 10000)
Let's look at the beginning:
The parameters before the "*" symbol inside the brackets are the required parameters. These we need to input in the same order. If the first parameter is "pair", this command will only work if the first thing we give it is the pair of motors that it will be using. The same goes for the "degrees" and "steering".
The parameters after the "*" symbol inside the brackets are the optional parameters. These we need to name, to actually change. Meaning that if we want to change the "velocity", we cannot simply write the number. We need to write the name of the optional parameters that we are changing. Example:
motor_pair.move_for_degrees(motor_pair.PAIR_1, 360, 0, velocity=280)
Finally, the "Awaitable" keyword tells us that this command can work with the "await" keyword, which allows us to tell the program to wait until this command has finished executing before continuing with the next command. Example:
await motor_pair.move_for_degrees(motor_pair.PAIR_1, 360, 0, velocity=280)