mavlinkio
Create local MAVLink client
Description
The mavlinkio
function creates a mavlinkio
object, which represents a local MAVLink client. After you create a mavlinkio
object, you can connect the object and exchange messages with other MAVLink clients such as
UAV and ground control stations using the object functions.
Creation
Syntax
Description
creates a local MAVLink client with communication interface using MAVLink message
definition that you specify using a mavlink
= mavlinkio(msgDefinitions
)mavlinkdialect
object.
creates a local MAVLink client with communication interface using MAVLink message
definition that you specify using an XML file.mavlink
= mavlinkio(dialectXML
)
additionally specifies the MAVLink protocol version.mavlink
= mavlinkio(dialectXML
,version
)
additionally sets properties using one or more name-value arguments. For example,
mavlink
= mavlinkio(___,Name=Value)mavlink = mavlinkio("common.xml",SystemID=2)
sets the system ID to
2.
Input Arguments
Name-Value Arguments
Properties
Object Functions
connect | Connect to MAVLink clients through UDP port |
disconnect | Disconnect from MAVLink clients |
sendmsg | Send MAVLink message |
sendudpmsg | Send MAVLink message to UDP port |
serializemsg | Serialize MAVLink message to binary buffer |
listConnections | List all active MAVLink connections |
listClients | List all connected MAVLink clients |
listTopics | List all topics received by MAVLink client |
Examples
Version History
Introduced in R2019a