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 Motor(). In these brackets we enter the input parameters that the commands require.

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #1527
  • 28 Jan 2020

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

  • In the "wait()" 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 "Motor()" command has a more complex input parameter. It requires one of four input options, namely "Port.A", "Port.B", "Port.C" or "Port.D". You can probably guess what they do.

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Python with LEGO Mindstorms EV3 - Level 1
  • 74
  • 28:18
  • 114
Image for Additional Tasks
  • 3
  • 0
  • 8
  • 3d_rotation 0
Image for Python with LEGO Mindstorms EV3 - Level 1
  • 74
  • 28:18
  • 114
Image for Lesson 2 - Robotic arm
  • 10
  • 5
  • 9
  • 3d_rotation 1