This QT project shows how a basic ground control station can be setup for the hardware running on mavlink based communication.
- PX4 is running on the same machine in SITL mode with a quadrotor vehicle.
- The quadrotor is being controlled using a PS4 controller which can be connected through bluetooth or USB to the machine.
- The PS4 controller's L2 is thrust, left joystick up/down is pitch and left/right is roll, and right joystick left/right is yaw.
- MavLINK library is located in /home directory. Take a look at myGroundControl.pro file for the complete path.
controller.h and controller.cpp : Implements a PS4 controller class to recieve manual position command. mlinkudp.h and mlinkudp.cpp : This is a udp socket class to send and recieve udp packets. mydrone.h and mydrone.cpp : The main class that handels mavlink message processing.