Agent skill

matlab-connect-mavlink

Establish MAVLink connections between MATLAB and PX4/ArduPilot autopilots. Use when connecting to a drone, flight controller, or autopilot via MAVLink protocol over UDP. Covers dialect setup, UDP transport, timer-based heartbeat, and client discovery. Use when: "connect to PX4", "MAVLink connection", "heartbeat", "ground control station", "GCS", "connect to ArduPilot", "drone communication", "mavlinkio", "SITL".

matlabgithub.com/matlabGitHub ↗
claude-codecodexcopilotNOASSERTION
Install
npx skills add matlab/matlab-agentic-toolkit --skill matlab-connect-mavlink --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 14 KB
Bundled scripts: none
Version: 1.0
Declared author: MathWorks
Path: skills-catalog/robotics-and-autonomous-systems/matlab-connect-mavlink/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 868
Language: MATLAB

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# MAVLink Connection Setup Establish a MAVLink UDP connection from MATLAB to a PX4 or ArduPilot flight controller, with MATLAB acting as a ground control station (GCS). This skill encodes the correct protocol sequence and heartbeat pattern that agents consistently get wrong. ## When to Use - User wants to connect MATLAB to a PX4 or ArduPilot autopilot via UDP - User is building a ground control station in MATLAB - User needs to set up MAVLink communication with SITL or networked autopilot - User asks about heartbeat exchange or client discovery - User references `mavlinkio`, `mavlinkdialect`, or `sendudpmsg` ## When NOT to Use - User wants to read/set parameters, upload missions, or download logs over an already-established connection — these work well without this skill - User is working with Simulink MAVLink blocks (different workflow) - User only wants to parse a `.ulg` log file offline — use `ulogreader` directly - User asks about MAVLink message serialization/deserialization only ## Workflow Follow this exact sequence. The order matters — skipping or reordering steps causes silent failures. ### 1. Create the dialect ```matlab dialect = mavlinkdialect("common.xml", 2); ``` Use

What's inside
Steps it walks through
  1. When to Use
  2. When NOT to Use
  3. Workflow
  4. 1. Create the dialect
  5. 2. Create the MAVLink IO interface
  6. 3. Connect UDP transport
  7. 4. Build the GCS heartbeat message
  8. 5. Start periodic heartbeat
  9. 6. Verify client discovery (Workflow B only)
  10. 7. Clean up when done
  11. Key Functions
  12. Patterns
  13. UDP Connection to PX4 SITL (Auto-Discovery)
  14. Subscribing to Specific Messages
Ships with 1 file
  • manifest.yaml
More from matlab-agentic-toolkit
All skills →
About this skill
What does the matlab-connect-mavlink skill do?

Establish MAVLink connections between MATLAB and PX4/ArduPilot autopilots. Use when connecting to a drone, flight controller, or autopilot via MAVLink protocol over UDP. Covers dialect setup, UDP transport, timer-based heartbeat, and client discovery. Use when: "connect to PX4", "MAVLink connection", "heartbeat", "ground control station", "GCS", "connect to ArduPilot", "drone communication", "mavlinkio", "SITL".

How do I install it?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-connect-mavlink --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going