Controlling a rover using a laptop with QT5

Now that we can control the LEDs, let's look at how to control the rover using QT5. Inside the Qt Creator IDE, create a new project and name it QTRover. You can download the QTRover project folder from the GitHub repository of this chapter. We can now create this QTRover project using the clicked() function and the pressed() and released() functions. To do so, we have the following options:

  1. If we create this project using only the clicked() function, we would need to create five buttons: forward, backward, left, right, and stop. We would need to press the stop button each time to stop the robot.
  2. If we create this project using only the pressed() and released() functions, we would only need to ...

Get Hands-On Robotics Programming with C++ 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.