deserializemsg

Deserialize MAVLink message from binary 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