Parallel actions Pro Preview

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #951
  • 28 Aug 2018

Your robot today will have to perform various actions simultaneously while it's making sounds and its arm is rotating. 

We will put the move blocks in the first thread. 

Below, in the second thread, we will put the blocks which will be executed in parallel with the first thread – the block for rotating the motor of the arm.

We take the second thread, which will be included in the program, by holding the mouse on one of the two branches at the start of the program. Then, we drag it to the beginning of the blocks we have put below.

We get the following result:

If we download and launch this program on the robot, we will have the following reaction: The robot will repeat the forward-backward movement infinitely and in parallel with that, the arm motor will make one complete rotation in the beginning.

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Robotics with LEGO - Level 1.0 - Adventure in Space
  • 126
  • 123:52
  • 150
Image for Level A2. "Space exploration". Robotics with LEGO
  • 63
  • 3:02
  • 117
Image for Lesson 6 - Parallel actions
  • 5
  • 3
  • 2
  • 3d_rotation 1
Image for Robotics with LEGO - Level 4.5 Game Time
  • 35
  • 13:40
  • 221
Image for Robotics with LEGO - Level 2.0 - Robots in Factories
  • 44
  • 15:01
  • 129
Image for Level C1. "Transportation". Robotics with LEGO
  • 33
  • 1:03
  • 110