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.
[msg,status] = deserializemsg(dialect,buffer,OutputAllMessage=true)
returns all messages msg that can be deserialized from buffer, and
the status status of each message. deserializemsg
returns messages and statuses even if an error occurs during the signature check or
checksum check.
MAVLink message, returned as a structure if OutputAllMessage is
false, or a structure array if OutputAllMessage
is true. Each message is a structure with the fields:
MsgID: Positive integer for message ID.
Payload: Structure containing fields for the specific message
definition.
Statuses of messages, returned as an N-element row vector of
integers in the range [0, 2]. N is the total number of messages in
msg. The ith
element of status corresponds to the parse state of the
ith message in
msg.
These are the possible statuses and the meaning for the corresponding message:
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.