What are MAVLink and telemetry: packet structure and setup
What is MAVLink and how does telemetry work? The message behind every value on screen, inside a MAVLink 2 packet, SiK radio setup, and what happens when the connection drops.
If you see the altitude changing and the battery draining in Mission Planner, every number on screen arrived in a MAVLink message. The drone sends these messages dozens of times per second, and the ground station reads them and turns them into gauges. Telemetry is the name of this flow, and MAVLink is the language of the flow.
What is MAVLink
MAVLink (Micro Air Vehicle Link) is an open message protocol used between unmanned vehicles and the ground station. Lorenz Meier released it in 2009. Today both ArduPilot and PX4 speak the same language. That's why a single ground station works with both autopilots.
Here's the short version to remember: MAVLink is the language drones speak and understand. Every message has a number and fields. HEARTBEAT says "I'm here", ATTITUDE carries roll and pitch angles, and COMMAND_LONG carries commands like "take off", "land", and "return home".
Messages are defined in XML files, and the Python, C, and C# libraries are generated from these definitions. The MAVLink classes in pymavlink, MAVSDK, and C# ground stations come from here.
Inside a MAVLink 2 packet
MAVLink 1 vs MAVLink 2
The version in use today is MAVLink 2. The start byte changed from 0xFE to 0xFD, and the message number escaped the 255 limit and grew to 24 bits. Packets also got shorter because trailing empty fields are trimmed. The most important new feature is packet signing: with signing enabled, the vehicle rejects commands from a transmitter that doesn't know the key.
To switch a serial port to MAVLink 2 in ArduPilot, SERIALn_PROTOCOL = 2 is enough. N is the port number: SERIAL1_PROTOCOL for TELEM1. The value is entered in Mission Planner under CONFIG → Full Parameter List. On newer boards, TELEM1 and TELEM2 already come this way. If you use an old radio module or old code that expects MAVLink 1, you can set the value to 1 and switch back later.
What is telemetry
Telemetry is the vehicle reporting its own state remotely: position, altitude, speed, battery, flight mode, warnings. Every gauge on the ground station is a piece of this data. The link works in both directions. Mission upload, parameter change, and mode change commands travel to the vehicle over the same path.
Which message each value you see on the ground station comes from:
- Roll, pitch, heading: ATTITUDE
- Position and altitude: GLOBAL_POSITION_INT
- GPS satellite count and fix: GPS_RAW_INT
- Airspeed, ground speed, throttle: VFR_HUD
- Battery voltage and current: SYS_STATUS and BATTERY_STATUS
- Flight mode and ARM state (whether the motors are ready to run): HEARTBEAT
- Warnings like "PreArm: …": STATUSTEXT
The ground station requests how often these messages arrive. In ArduPilot, the SRn_ parameters or MAVLink's SET_MESSAGE_INTERVAL command set the rate. If the rate is low, the screen updates late. The details are in the article Telemetry isn't arriving, check the message interval first.
Example: where does the 30 meters on the screen come from
While the drone hovers at 30 meters after takeoff, the altitude value in Mission Planner comes from the relative_alt field of the GLOBAL_POSITION_INT message. This field is in millimeters: the vehicle sends 30000, and the ground station shows it as 30.0 m.
The latitude and longitude in the same message are integers too. Degrees are multiplied by 10 million before sending, so 39.9071 leaves the vehicle as 399071000. If you forget to divide when reading these fields in your own code, the drone appears 30 kilometers up on screen and in the wrong place on the map.
How to set up a telemetry link
Where telemetry flows
The most common setup is a pair of SiK radios. One plugs into the vehicle's flight controller (usually a Pixhawk) at the TELEM1 port, and the other plugs into the computer over USB. In Türkiye and Europe the 433 MHz versions are used, in America the 915 MHz versions, and the default rate is 57600 baud. Range goes from a few hundred meters to a few kilometers depending on the antenna and output power.
The most common mistake: the baud rate box at the top right of Mission Planner stays on 115200. The SiK radio talks at 57600, so the port opens but not a single packet is read, and after a few seconds the "No Heartbeat Packets Received" warning appears. Select 57600 when connecting through the radio, and 115200 when connecting the board directly over USB.

At a desk or over a short distance, a Bluetooth (HC-06) or Wi-Fi module (ESP32) also does the job. XBee is used to put several vehicles on the same network. Systems like Herelink, which combine transmitter, video, and telemetry in one radio, carry MAVLink inside as well.
A companion computer such as a Raspberry Pi connects to TELEM2 by cable, reads the same messages from Python with pymavlink, and sends commands. Autonomous missions are written this way. If the connection is up but no data arrives, see the article Raspberry Pi is cabled up, but no MAVLink flows.
What happens when telemetry drops
When the link drops, the vehicle doesn't stop; the ground station just stops seeing it. ArduPilot has the ground station failsafe (FS_GCS_ENABLE) for this: if no HEARTBEAT arrives from the station for the time you set, the vehicle returns home or lands.
Most dropouts in the field come from antenna orientation, a crowded frequency, or too many messages filling the link. We explain how to tell which one it is by measuring in the article Why does Pixhawk telemetry drop in the air.
Common messages
No Heartbeat Packets Received
Mission Planner opened the port, but no HEARTBEAT arrived from the vehicle. Most often the baud rate is wrong, the wrong COM port is selected, or the port's SERIALn_PROTOCOL value is not MAVLink.
GCS Failsafe
The vehicle received no HEARTBEAT from the ground station for FS_GCS_TIMEOUT (5 seconds by default) and started the action you chose in FS_GCS_ENABLE. If the message ends with a suffix like " - Continuing Auto Mode", the vehicle is continuing the mission.
GCS Failsafe Cleared
The link is back. The vehicle stays in the mode the failsafe chose and does not return to its previous mode on its own. You change the mode from the transmitter or the ground station.
What's next
We show reading MAVLink packets one by one, choosing a radio, and calculating range hands-on in the Drone Communication Technologies course. You can watch the first lesson free once you sign up.
Was this article helpful?
Learn this topic from start to finish
Season plan: all six courses for 9 months, ₺790 a month. ₺390 a month for high school and university students, ₺351 the first month with your member code. You can stop in any month you like. Start the Season plan · I'm a student