Exercises
Here are some ideas to further your understanding, and give you some ideas for more interesting things to do with the concepts from this chapter:
- A reader can use more colors and complicated shapes to make a better robot model. It's not the purpose of this chapter, but it is a fun and rewarding way to get more familiar with VPython.
- Our magnetometer settings were hardcoded, going into a Python file. It is good practice to load settings from a data file. A good starting point can be found at http://zetcode.com/python/yaml/.
- Could the visual robot be used to display or debug the other sensors and integrations?
- Could you combine the absolute positioning here with the encoders to make a square with very accurate turns?