Input parameters Pro Preview

In programming, a command is the name of a function followed by brackets. Examples of commands are run() and sleep_ms(). Inside the brackets, we write the information the command needs to work.

This information is called input parameters. They tell the command what to do:

  • In the "sleep_ms()" command, we enter a number that shows how long the program should wait. The number represents milliseconds (1 second = 1000 milliseconds).

  • The "run()" command also uses a number. This number sets the speed of the motor in degrees per second, which means how fast the motor turns.

  • The "stop()" command (and also "run()") needs to know which motor to control. For this, we use port.A, port.B, port.C, port.D, port.E, or port.F.

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #2583
  • 06 Feb 2026