MAVLink Bridge Sink
R2026bLibraries:
UAV Toolbox Support Package for PX4 Autopilots /
PX4 Utility Blocks /
MAVLink Bridge Blocks
Description
Add-On Required: This feature requires the UAV Toolbox Support Package for PX4 Autopilots add-on.
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 provide 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
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"px4MAVLinkBridgelib/MAVLink Bridge Sink"
Example: add_block("px4MAVLinkBridgelib/MAVLink Bridge Sink","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2022a
