Getting Started with Robot Programming
We have already used a few small code snippets here and there to demonstrate certain functionalities of the Arduino Uno to read sensors and control motors. But what if you wanted to combine all of this into a single program that uses multiple interfaces at the same time, runs control algorithms, and controls motors, all concurrently?
In this chapter, you will learn how to make all of this work in practice. It is structured as follows:
- The general structure of a robot program
- Cooperative multitasking
- State machines
- Blocking and unblocking function calls
- Feedback control
You will be able to use these general concepts and techniques in every robotics project.