How to control an UAV using MAVLink?

Hello!

I am currently working on a drone, which will be used for exploring an agricultural field. It is working on NVIDIA Jetson TX1. So I successfully set up communication between the Jetson and Pixhawk (flight controller) via the serial port /dev/ttyTHS1. Then I run the following MavProxy command to send the MAVLink package to PC and run Mission Planner via UDP at Port 14550 -

sudo mavproxy.py --master=/dev/ttyUSB0 --baudrate 921600 --aircraft MyCopter --out YOUR_PC_IP:14550

I was able to change the mode, arm and disarm the UAV etc., directly from the command line. Now I don't understand how to use the node to control my drone. I did find the MAVLink message documentation here. But I do not understand how to use them with ROS so that the drone gets the message. Can anyone explain?

I want to launch the UAV to a certain height and loiter around for a specific time.

Thanks in advance!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity