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.

sendudpmsg

Send MAVLink message to UDP port

Syntax

sendudpmsg(mavlink,msg,remoteHost,remotePort)

Description

sendudpmsg(mavlink,msg,remoteHost,remotePort) sends the message, msg, to the remote UDP port specified by the host name, remoteHost, and port number, remotePort.

Input Arguments

collapse all

MAVLink client connection, specified as a mavlinkio object.

MAVLink message, specified as a structure with the fields:

  • MsgID: Positive integer for message ID.

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

To create a blank message, use the createmsg with a mavlinkdialect object.

Remote host IP address, specified as a string.

Example: "192.168.1.10"

Remote host IP address, specified as a five-digit numeric scalar.

Example: 14550

Introduced in R2019a