Main Content

MAVLink Support

Micro Air Vehicle Link communication protocol, dialects and messages

The Micro Air Vehicle Link (MAVLink) communication protocol is a message protocol for sending and receiving messages between UAVs. The protocol uses a publish-subscribe pattern for data streams with specified topics and message types. There are different sub-protocols for missions and parameters. Use the MAVLink supported functions to specify predefined or custom dialects, setup clients, and send or receive messages.

Functions

mavlinktlogRead MAVLink message from TLOG file
mavlinkioConnect with MAVLink clients to exchange messages
mavlinkclientMAVLink client information
mavlinksubReceive MAVLink messages
mavlinkdialectParse and store MAVLink dialect XML

Blocks

MAVLink Blank MessageCreate blank MAVLink message bus by specifying payload information and MAVLink message type
MAVLink DeserializerConvert serialized uint8 MAVLink data stream to Simulink nonvirtual bus
MAVLink SerializerSerialize messages of MAVLink packet by converting Simulink nonvirtual bus to uint8 data stream

Featured Examples