Input parameters Pro Preview

A command in programming is the name of a function, followed by two brackets. Examples of commands are run(), wait, and sleep_ms(). In these brackets, we enter the input parameters that the commands require.

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #2583
  • 06 Feb 2026

The input parameters of a command are the information that it needs in order to execute what we need it to:

  • In the "sleep_ms()" command, we enter an input parameter in the form of a number that indicates how much we want the command to wait. The number itself represents the number of milliseconds the command will wait;
  • The "run()" command also has a numeric input parameter. The number represents the speed of the motor in degrees per second, or how many degrees the motor will turn for the duration of one second;
  • The "stop()" command has a more complex input parameter that the "run()" command also shares. It requires one of four input options, namely "port.A", "port.B", "port.C", "port.D", "port.E", or "port.F". You can probably guess what they do.