You've now briefly seen some components you might use in a robot, and you've encountered a block diagram to put them together. This is where you may start taking the next step and thinking further about how things will be connected, and how the code you write for them will be structured. Code is easier to reason about when taken as logical blocks instead of one large lump. Arranging code in ways that are similar to a hardware functionality diagram will help navigate your way around as it becomes more complicated.
So, let's return to the robot block diagram seen before.
This diagram has three sensors and two outputs. Throughout this book, you will see diagrams like this, and then be adding new modules along with new bits of code to deal with them. Each component (sensor, output, and controller board) may need a few bits of code...