MAVLink
MAVLink or Micro Air Vehicle Link is a protocol for communicating with small unmanned vehicle.[src] It is designed as a header-only message marshalling library.[src] MAVLink was first released early 2009 by Lorenz Meier under the terms of the GNU Lesser General Public License (LGPL).[src]
MAVLink or Micro Air Vehicle Link is a protocol for communicating with small unmanned vehicle.[src] It is designed as a header-only message marshalling library.[src] MAVLink was first released early 2009 by Lorenz Meier under the terms of the GNU Lesser General Public License (LGPL).[src] ==Packet structure== In version 1.0 the packet structure is the following: After Version 2, the packet structure was expanded into the following: ===CRC field=== To ensure message integrity, a cyclic redundancy check (CRC) is calculated for each message up to the last two bytes.[src] Another function of the CRC field is to ensure the sender and receiver both agree on the message that is being transferred.[src] It is computed using an ITU X.25/SAE AS-4 hash of the bytes in the packet, excluding the Start-of-Frame indicator (so 6+n+1 bytes are evaluated, and the extra +1 is the seed value).[src] Additionally a seed value is appended to the end of the data when computing the CRC.[src] The seed is generated with each new message set of the protocol, and it is hashed in a similar way as the packets from each message specification.[src] Systems using the MAVLink protocol can use a precomputed array for this purpose.[src] The CRC algorithm of MAVLink has been implemented in many languages, including Python and Java.[src] ===Messages=== The payloads from the packets described above are MAVLink messages.[src] Each message is identifiable by the ID field on the packet, and the payload contains the data from the message.[src] An XML document in the MAVlink source has the definition of the data stored in this payload.[src] Below is the message with ID 24 extracted from the XML document.[src] The global position, as returned by the Global Positioning System (GPS).[src] This is NOT the global position estimate of the system, but rather a RAW sensor value.[src] See message GLOBAL_POSITION for the global position estimate.[src] Coordinate frame is right-handed, Z-axis up (GPS frame).[src] Timestamp (microseconds since UNIX epoch or microseconds since system boot) 0-1: no fix, 2: 2D fix, 3: 3D fix.[src] Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix.[src] Latitude (WGS84), in degrees * 1E7 Longitude (WGS84), in degrees * 1E7 Altitude (WGS84), in meters * 1000 (positive for up) GPS HDOP horizontal dilution of position in cm (m*100).[src] If unknown, set to: UINT16_MAX GPS VDOP vertical dilution of position in cm (m*100).[src] If unknown, set to: UINT16_MAX GPS ground speed (m/s * 100).[src] If unknown, set to: UINT16_MAX Course over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees.[src] If unknown, set to: UINT16_MAX Number of satellites visible.[src] If unknown, set to 255 Note: The XML document describes the logical ordering of the fields for the protocol.[src] The actual wire format (and typical in-memory representation) has the fields reordered to reduce Data structure alignment issues.[src] This can be a source of confusion when reading the code generated from the message definitions.[src] ==See also== ExpressLRS ==References==[src]
32 sentences · 32 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"MAVLink." encyclopegia.org, 2026, https://encyclopegia.org/wiki/mavlink. Accessed 27 November 2026.
Chicago
"MAVLink." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/mavlink.
APA
encyclopegia.org. (2026). MAVLink. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/mavlink
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| release date | 2009 | Wikipedia |