Блокче за изчакване. Как се използва. Pro Preview

Как да накараме робота да изчаква, докато програмата все още върви.

  • #395
  • 27 Apr 2017
  • 2:02

Блокче за изчакване

От оранжевата палитра Flow /Поток избираме второто блокче - блокчето за изчакване. Настройката по подразбиране на блокчето за изчакване е да накара робота да изчака за определено време. Настройте блокчето, колко секунди да бъде изчакването преди програмата да продължи със следващото блокче. 
Може да приемете, че блокчето за изчакване работи като "пауза".

 

English

The correct way to implement moving forward, wait and return back is to use a wait block. The goal of this wait block is to make the robot wait, just be there, stay for a number of seconds.

In the software we take a display block, we put on a smiley face, big smile, then we move forward with the steering block for 1 rotation and then we return back with the steering block. You remember that returning back is moving -1 rotation.

The new block that we'll introduce now is not in the green palette, it's in this kind of an orange palette. And we take the wait block. Just drag and drop. What this block will do is make the robot wait for a number of seconds. How many seconds? We set this here. It's just 1 second. So, we put on a big smile, move forward then wait for a second and then move back. It's not a good idea to be very rude if you are a robot and you try to greet a stranger. Just don't be rude. Wait, so the other could reply and then return back. That's our program. We'll use the wait block in many programs from now, it's a very simple block, it's just waiting for a number of seconds. Download and run.

Курсове и занятия включващи този Урок

Този Урок е използван в следните курсове и занятия.

Image for EV3 Phi. Introduction to robotics with LEGO Mindstorms
  • 92
  • 220:20
  • 36
Image for Роботика с LEGO - Ниво 1.0 - Приключение в Космоса
  • 126
  • 123:52
  • 150
Image for Ниво A - Въведение - Роботика с LEGO
  • 142
  • 133:42
  • 187
Image for Занятие 3 - Поздрав към Извънземно
  • 12
  • 3
  • 5
  • 3d_rotation 2