Gyro sensor - Wait - change block Pro Preview

We are already familiar with the Gyro sensor and we know how to use it with the Wait Block and wait for a comparison to return true. But what is the other setting ('change') of the block doing?

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #1258
  • 08 May 2019

content picture

Similar to the option to compare, the option for change has two modes:

  • Angle - the robot waits for the Gyro sensor to detect a change in the angle, by default 10 degrees. This change could be in both directions - the angle could increase by 10 degrees or decrease by 10 degrees. Of course, you can configure the block to wait specifically for increase or decrease. 
  • Rate - the robot waits for the Gyro sensor to detect a change in the speed in which it is turning, by default 10 degrees per second. This change could be in both directions - the angle could increase by 10 degrees or could decrease. Of course the sensor could be configured to wait only for one of them.  Picture of EV3-G program for a gyro sensor that waits for a change in rate.

These blocks are very useful to detect diversions from the right path. If someone hits the robot, the rate of turn will change a lot! Of course, you can find other solutions!

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Level D2. "Seafaring". Robotics with LEGO
  • 24
  • 2:49
  • 107
Image for Lesson 4 - Yacht
  • 4
  • 5
  • 8
  • 3d_rotation 1
Image for Robotics with LEGO - Level 4.0 - Kinesthetic and Memory Game (in development)
  • 59
  • 2:58
  • 200
Image for Robotics with LEGO - Level 2.5 - Maritime Journey
  • 42
  • 3:52
  • 133