So far, you have used commands requiring only one input parameter, but many commands in programming require a lot more than one type of information. Such an example is the "run_time()" command.

To access the full video please subscribe to FLLCasts.com
- #1535
- 15 Feb 2020
This command moves the motor if it is given the speed and time of the movement and the type of brake. In commands such as these, the input parameters are entered one after another and separated with commas.
Order of the parameters.
The order in which the parameters are entered is important. If we wish to move the robot at 45 degrees per second for 2 seconds, the command would look as follows:
Motor(Port.D).run_time(45, 2000, Stop.HOLD)
If we enter the time we want the robot to turn for in the first field, however, this command will try to turn the motor for 0,0045 seconds (45 milliseconds):
Motor(Port.D).run_time(2000, 45, Stop.HOLD)
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Python with LEGO Mindstorms EV3 - Level 1
The course introduces students to the programming language Python. We use LEGO Mindstorms EV3 Robots. Python is a popular programming language. It could be used for introducing students to programming, for academic studies, for developing machine learning algorithms and as a general-purpose language.
During the course, students learn how to read and how to develop Python programs. They use an Integrated Development Environment called Visual Studio Code. Robots are programmed to perform interesting and funny tasks like "bringing you water". The level ends with competition on a playing field with boxes.
- 74
- 28:18
- 114

Lesson 2 - Robotic arm
Introduction
Last time, we programmed our robot to walk around with a platter and a beverage glass, but it couldn't hand the glass to a client. Today we will program a robotic arm to hand out a glass.
Be careful with what speed you will set your robot to move the glass or you may spill its contents!
- 10
- 5
- 9
- 3d_rotation 1