AeroCoder Logo

Messages and Commands

System and component IDs

Sysid/compid conventions, addressing rules, and multi-vehicle networks.

Every MAVLink participant is identified by a (system ID, component ID) pair. System IDs distinguish vehicles on the same network (1–255). Component IDs distinguish parts within a system (autopilot = 1, camera = 100, gimbal = 154, GCS = typically 190–255).

The special value 0 is used as a broadcast or wildcard: a message with target_system=0 is meant for all systems, and target_component=0 is for all components within the targeted system.

text

Common component IDs (MAV_COMPONENT enum)
────────────────────────────────────────────
ID    Name
────  ────────────────────────────
  1   MAV_COMP_ID_AUTOPILOT1
100   MAV_COMP_ID_CAMERA
154   MAV_COMP_ID_GIMBAL
190   MAV_COMP_ID_MISSIONPLANNER
191   MAV_COMP_ID_ONBOARD_COMPUTER
  0   Broadcast / all components

Multi-vehicle tips

Assign each vehicle a unique sysid (e.g. 1, 2, 3). GCS is typically sysid 255. Never reuse a sysid on the same radio link — it creates ambiguous routing and corrupts state in ground stations.

← Previous

MAV_CMD command reference

Next →

Mission protocol

Edit this page on mavlink.io ↗

On This Page

Multi-vehicle tips

© 2024 AeroCoder. All rights reserved

TwitterYouTubeInstagram