In this lesson we are going to focus on the yellow palette of blocks and see how the rotation sensor reset blocks functions.
- 22 Mar 2019
As you probably know, the yellow blocks are used mainly for measurement and calculations based on these measurements. They do not prevent the flow of the program, do not take time for performance as the wait block or some sensors, or the sound and movement sensors. The program should wait for the robot to perform the green or orange blocks in order to continue. Nevertheless, the program goes through the yellow blocks in just part of the second which is why the flow of the program is not interrupted.
Each sensor has a yellow block which we will focus on in the next lessons. Now we will focus on just one of the options of the yellow block, namely Reset. That is how the block looks like:
You already know that every motor starts at 0 degrees at the beginning of the program. Then, we can perform many unpredictable maneuvers, depending on the robot; the robot may get hit, etc. To start the check all over again, we need to start from 0 which is why we use the Reset block. The block has one setting only and this is which motor should be reset. If two or more motors should be reset, 2 or more reset blocks should be used one after the other.
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons