Main Content

MAVLink Bridge Sink

Write MAVLink data to the Pixhawk board

Since R2022a

Add-On Required: This feature requires the UAV Toolbox Support Package for PX4 Autopilots add-on.

  • MAVLink Bridge Sink

Libraries:
px4MAVLinkBridgelib

Description

The MAVLink Bridge Sink block reads the MAVLink data from the source UDP/TCP ports, merges it with input data and writes to Pixhawk® hardware connected to Serial port.

To access the block, open the block library by entering the following command in the MATLAB® Command window.

px4MAVLinkBridgelib

The MAVLink Bridge Sink and MAVLink Bridge Source blocks provides a way to route MAVLink data stream from Pixhawk hardware to the mission planning software QGroundControl(QGC), On-board computer hardware, Simulink Plant, and vice versa in HITL workflow. For more information, see MAVLink Connectivity for QGC, On-board Computer and Simulink Plant.

Ports

Input

expand all

This port takes MAVLink data stream (uint8) as input.

Data Types: unit8

Parameters

expand all

Select a serial port for connecting to the Pixhawk board. If the required ports are not available in the list, select Specify manually and enter the serial port in the Serial Port (specify manually) field.

Note

You must select / specify the same serial port in MAVLink Bridge Source and MAVLink Bridge Sink blocks.

Click Add to add the source UDP/TCP connections for data routing. The existing connections ('UDP','127.0.0.1','14550') are used for connecting to QGC.

Version History

Introduced in R2022a