Other bang-bang controllers

In the following graphical program, instead of the Color Sensor, a Gyro Sensor is used to control the zones. One major difference you may notice is the discreteness of this graph. This is because the Gyro Sensor readings are not continuous but are only measured to the nearest degree. In this case, I spaced the circle and star zones two degrees apart. From the graph, you can see that the robot started to oscillate around the rectangular zone, but eventually settled down.

Other bang-bang controllers

In this graphical program, as you can see from the programming panels in the following screenshot, the robot is attempting to drive at a given angle. In ...

Get Learning LEGO MINDSTORMS EV3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.