This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

deserializemsg

Deserialize MAVLink message from binary buffer

Syntax

msg = deserializemsg(dialect,buffer)

Description

msg = deserializemsg(dialect,buffer) deserializes binary buffer data specified in buffer based on the specified MAVLink dialect. If a message is received as multiple buffers, you can combine them by concatenating the vectors in the proper order to get a valid message.

Input Arguments

collapse all

MAVLink dialect, specified as a mavlinkdialect object, which contains a parsed dialect XML for MAVLink message definitions.

Serialized messaged, specified as vector of uint8 integers.

Data Types: uint8

Output Arguments

collapse all

MAVLink message, returned as a structure with the fields:

  • MsgID: Positive integer for message ID.

  • Payload: Structure containing fields for the specific message definition.

Introduced in R2019a