Chapter 18. multitasking
In this chapter, you’ll learn how to run groups of blocks in parallel, allowing your robot to perform two or more tasks at the same time, which is called multitasking. For example, your program could have one section to control the robot’s navigation and another to collect sensor data.
I’ll start by showing you how to add a simple odometer to measure the distance traveled by the AroundTheBlock program and then move on to add flashing lights to the DoorChime program. I’ll also discuss the rules of program flow when you use parallel sequences and show you how to synchronize the actions between sequences.
more than one start block
In an EV3 program, a group of blocks connected together is called a sequence. All of the programs ...
Get The Art of LEGO MINDSTORMS EV3 Programming (Full Color) 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.