Exercises
These exercises will deepen your understanding of the topics discussed in this chapter and make the robot code better:
- Enhance the settings code so that the set point can be adjusted in the same way.
S<set point>
is probably a good idea. - Modify the command handlers for setting PID values to stop the motors and reset the integral when these values change.
- Try adapting the control code back to the distance control app used earlier in this chapter.
- Try the robot wall-follow when driving on a completely different surface and adjust the PID values to get a smooth wall following.