Main Content

sendudpmsg

Send MAVLink message to UDP port

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

Version History

Introduced in R2019a