7 Joystick-controlled robots
This chapter covers
- Reading joystick data using Pygame
- Reading and parsing raw joystick event data
- Measuring the rate of joystick events
- Creating a remote joystick robot controller
Joysticks are one of the most powerful input devices. When it comes to controlling robot motors, they offer much more superior control compared to keyboards and mice. The scenarios covered in this chapter will help you create a fully functional joystick-controlled robot. This chapter will teach you multiple ways of reading events from joystick hardware. We can then create our own event handlers that will perform different robot movements based on specific joystick movements. Along the way, we will also learn how to measure the number ...
Get Build Your Own Robot 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.