# mavlink/qgroundcontrol architecture

> Architecture diagram of the GitHub repository mavlink/qgroundcontrol, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mavlink/qgroundcontrol
- Repository: https://github.com/mavlink/qgroundcontrol

## Overview

QGroundControl is a cross-platform ground control station for MAVLink-enabled UAVs. The main workflow is to establish vehicle links, decode MAVLink traffic, maintain vehicle state, and expose that state for mission planning, flight monitoring, setup, and analysis. The graph preserves the README’s major product capabilities and uses sampled source references for internal connections where available. Several feature modules are represented from the tree and README rather than inspected source; their internal wiring is therefore not asserted.

Main entry points: [`src/Vehicle/MultiVehicleManager.h`](https://github.com/mavlink/qgroundcontrol/blob/master/src/Vehicle/MultiVehicleManager.h) (Vehicle registry), [`src/Vehicle/Vehicle.h`](https://github.com/mavlink/qgroundcontrol/blob/master/src/Vehicle/Vehicle.h) (Vehicle state), [`src/Comms/LinkManager.cc`](https://github.com/mavlink/qgroundcontrol/blob/master/src/Comms/LinkManager.cc) (Link manager), [`src/Comms/MAVLinkProtocol.h`](https://github.com/mavlink/qgroundcontrol/blob/master/src/Comms/MAVLinkProtocol.h) (MAVLink protocol)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_connectivity["Vehicle connectivity"]
  node_vehicle_link["Link manager<br/>[LinkManager.cc]"]
  node_mavlink["MAVLink protocol<br/>[MAVLinkProtocol.h]"]
end

subgraph group_vehicle["Vehicle services"]
  node_vehicle_registry["Vehicle registry"]
  node_vehicle_state["Vehicle state<br/>[Vehicle.h]"]
  node_vehicle_links["Vehicle link state"]
  node_adsb["ADS-B tracking"]
  node_gps["GPS services<br/>[GPSManager.cc]"]
  node_ftp["Vehicle file transfer<br/>[FTPManager.cc]"]
end

subgraph group_flight["Flight operations"]
  node_mission["Mission planning"]
  node_map_cache[("Map and offline tiles")]
  node_camera["Camera controls"]
  node_video["Video streaming<br/>[VideoManager.cc]"]
end

subgraph group_configuration["Setup and settings"]
  node_autopilot_setup["Autopilot setup"]
  node_parameters["Parameter system"]
  node_settings["Application settings<br/>[SettingsManager.cc]"]
  node_parameter_editor["Parameter editor"]
end

subgraph group_insight["Analysis and tools"]
  node_onboard_logs["Onboard log download"]
  node_log_analysis["Log analysis"]
  node_mavlink_inspector["MAVLink inspector"]
  node_mavlink_console["MAVLink console"]
end

node_operator(("Ground operator"))

node_operator -->|"connects"| node_vehicle_link
node_vehicle_link -->|"dispatches traffic"| node_mavlink
node_mavlink -->|"reports heartbeats"| node_vehicle_registry
node_vehicle_registry -->|"tracks vehicles"| node_vehicle_state
node_vehicle_state -->|"manages links"| node_vehicle_links
node_operator -->|"plans missions"| node_mission
node_mission -->|"uses vehicle"| node_vehicle_state
node_operator -->|"controls camera"| node_camera
node_operator -->|"views video"| node_video
node_operator -->|"configures vehicle"| node_autopilot_setup
node_autopilot_setup -->|"uses parameters"| node_parameters
node_operator -->|"edits parameters"| node_parameter_editor
node_parameter_editor -->|"accesses facts"| node_parameters
node_operator -.->|"sets preferences"| node_settings
node_operator -->|"downloads logs"| node_onboard_logs
node_onboard_logs -->|"requests files"| node_ftp
node_operator -->|"analyzes logs"| node_log_analysis
node_operator -->|"inspects traffic"| node_mavlink_inspector
node_operator -->|"uses console"| node_mavlink_console
node_operator -.->|"manages offline maps"| node_map_cache
node_vehicle_registry -.->|"tracks aircraft"| node_adsb
node_vehicle_registry -.->|"uses GPS services"| node_gps

click node_vehicle_link "https://github.com/mavlink/qgroundcontrol/blob/master/src/Comms/LinkManager.cc"
click node_mavlink "https://github.com/mavlink/qgroundcontrol/blob/master/src/Comms/MAVLinkProtocol.h"
click node_vehicle_registry "https://github.com/mavlink/qgroundcontrol/blob/master/src/Vehicle/MultiVehicleManager.h"
click node_vehicle_state "https://github.com/mavlink/qgroundcontrol/blob/master/src/Vehicle/Vehicle.h"
click node_vehicle_links "https://github.com/mavlink/qgroundcontrol/blob/master/src/Vehicle/VehicleLinkManager.h"
click node_mission "https://github.com/mavlink/qgroundcontrol/blob/master/src/MissionManager/MissionController.cc"
click node_map_cache "https://github.com/mavlink/qgroundcontrol/blob/master/src/QtLocationPlugin/QGCMapEngineManager.cc"
click node_camera "https://github.com/mavlink/qgroundcontrol/blob/master/src/Camera/QGCCameraManager.cc"
click node_video "https://github.com/mavlink/qgroundcontrol/blob/master/src/VideoManager/VideoManager.cc"
click node_autopilot_setup "https://github.com/mavlink/qgroundcontrol/blob/master/src/AutoPilotPlugins/APM/APMSensorsComponentController.cc"
click node_parameters "https://github.com/mavlink/qgroundcontrol/blob/master/src/FactSystem/ParameterManager.cc"
click node_settings "https://github.com/mavlink/qgroundcontrol/blob/master/src/Settings/SettingsManager.cc"
click node_parameter_editor "https://github.com/mavlink/qgroundcontrol/blob/master/src/QmlControls/ParameterEditorController.cc"
click node_onboard_logs "https://github.com/mavlink/qgroundcontrol/blob/master/src/AnalyzeView/OnboardLogs/OnboardLogController.cc"
click node_log_analysis "https://github.com/mavlink/qgroundcontrol/blob/master/src/AnalyzeView/LogViewer/LogViewerController.cc"
click node_mavlink_inspector "https://github.com/mavlink/qgroundcontrol/blob/master/src/AnalyzeView/MAVLinkInspector/MAVLinkInspectorController.cc"
click node_mavlink_console "https://github.com/mavlink/qgroundcontrol/blob/master/src/AnalyzeView/MAVLinkConsole/MAVLinkConsoleController.cc"
click node_adsb "https://github.com/mavlink/qgroundcontrol/blob/master/src/ADSB/ADSBVehicleManager.cc"
click node_gps "https://github.com/mavlink/qgroundcontrol/blob/master/src/GPS/GPSManager.cc"
click node_ftp "https://github.com/mavlink/qgroundcontrol/blob/master/src/Vehicle/FTPManager.cc"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_vehicle_link,node_mavlink toneBlue
class node_vehicle_registry,node_vehicle_state,node_vehicle_links,node_adsb,node_gps,node_ftp toneAmber
class node_mission,node_map_cache,node_camera,node_video toneMint
class node_autopilot_setup,node_parameters,node_settings,node_parameter_editor toneRose
class node_onboard_logs,node_log_analysis,node_mavlink_inspector,node_mavlink_console,node_operator toneIndigo
```

## Components

### Vehicle connectivity

- [Link manager](https://github.com/mavlink/qgroundcontrol/blob/master/src/Comms/LinkManager.cc): `src/Comms/LinkManager.cc`
- [MAVLink protocol](https://github.com/mavlink/qgroundcontrol/blob/master/src/Comms/MAVLinkProtocol.h): `src/Comms/MAVLinkProtocol.h`

### Vehicle services

- [Vehicle registry](https://github.com/mavlink/qgroundcontrol/blob/master/src/Vehicle/MultiVehicleManager.h): `src/Vehicle/MultiVehicleManager.h`
- [Vehicle state](https://github.com/mavlink/qgroundcontrol/blob/master/src/Vehicle/Vehicle.h): `src/Vehicle/Vehicle.h`
- [Vehicle link state](https://github.com/mavlink/qgroundcontrol/blob/master/src/Vehicle/VehicleLinkManager.h): `src/Vehicle/VehicleLinkManager.h`
- [ADS-B tracking](https://github.com/mavlink/qgroundcontrol/blob/master/src/ADSB/ADSBVehicleManager.cc): `src/ADSB/ADSBVehicleManager.cc`
- [GPS services](https://github.com/mavlink/qgroundcontrol/blob/master/src/GPS/GPSManager.cc): `src/GPS/GPSManager.cc`
- [Vehicle file transfer](https://github.com/mavlink/qgroundcontrol/blob/master/src/Vehicle/FTPManager.cc): `src/Vehicle/FTPManager.cc`

### Flight operations

- [Mission planning](https://github.com/mavlink/qgroundcontrol/blob/master/src/MissionManager/MissionController.cc): `src/MissionManager/MissionController.cc`
- [Map and offline tiles](https://github.com/mavlink/qgroundcontrol/blob/master/src/QtLocationPlugin/QGCMapEngineManager.cc): `src/QtLocationPlugin/QGCMapEngineManager.cc`
- [Camera controls](https://github.com/mavlink/qgroundcontrol/blob/master/src/Camera/QGCCameraManager.cc): `src/Camera/QGCCameraManager.cc`
- [Video streaming](https://github.com/mavlink/qgroundcontrol/blob/master/src/VideoManager/VideoManager.cc): `src/VideoManager/VideoManager.cc`

### Setup and settings

- [Autopilot setup](https://github.com/mavlink/qgroundcontrol/blob/master/src/AutoPilotPlugins/APM/APMSensorsComponentController.cc): `src/AutoPilotPlugins/APM/APMSensorsComponentController.cc`
- [Parameter system](https://github.com/mavlink/qgroundcontrol/blob/master/src/FactSystem/ParameterManager.cc): `src/FactSystem/ParameterManager.cc`
- [Application settings](https://github.com/mavlink/qgroundcontrol/blob/master/src/Settings/SettingsManager.cc): `src/Settings/SettingsManager.cc`
- [Parameter editor](https://github.com/mavlink/qgroundcontrol/blob/master/src/QmlControls/ParameterEditorController.cc): `src/QmlControls/ParameterEditorController.cc`

### Analysis and tools

- [Onboard log download](https://github.com/mavlink/qgroundcontrol/blob/master/src/AnalyzeView/OnboardLogs/OnboardLogController.cc): `src/AnalyzeView/OnboardLogs/OnboardLogController.cc`
- [Log analysis](https://github.com/mavlink/qgroundcontrol/blob/master/src/AnalyzeView/LogViewer/LogViewerController.cc): `src/AnalyzeView/LogViewer/LogViewerController.cc`
- [MAVLink inspector](https://github.com/mavlink/qgroundcontrol/blob/master/src/AnalyzeView/MAVLinkInspector/MAVLinkInspectorController.cc): `src/AnalyzeView/MAVLinkInspector/MAVLinkInspectorController.cc`
- [MAVLink console](https://github.com/mavlink/qgroundcontrol/blob/master/src/AnalyzeView/MAVLinkConsole/MAVLinkConsoleController.cc): `src/AnalyzeView/MAVLinkConsole/MAVLinkConsoleController.cc`

### Other components

- **Ground operator**

## Connections

- Ground operator → Link manager: connects (evidence: `README.md`)
- Link manager → MAVLink protocol: dispatches traffic (evidence: `src/Comms/LinkManager.cc`)
- MAVLink protocol → Vehicle registry: reports heartbeats (evidence: `src/Comms/MAVLinkProtocol.h`)
- Vehicle registry → Vehicle state: tracks vehicles (evidence: `src/Vehicle/MultiVehicleManager.h`)
- Vehicle state → Vehicle link state: manages links (evidence: `src/Vehicle/VehicleLinkManager.h`)
- Ground operator → Mission planning: plans missions (evidence: `README.md`)
- Mission planning → Vehicle state: uses vehicle (evidence: `src/MissionManager/MissionController.cc`)
- Ground operator → Camera controls: controls camera (evidence: `README.md`)
- Ground operator → Video streaming: views video (evidence: `README.md`)
- Ground operator → Autopilot setup: configures vehicle (evidence: `README.md`)
- Autopilot setup → Parameter system: uses parameters (evidence: `src/AutoPilotPlugins/APM/APMSensorsComponentController.cc`)
- Ground operator → Parameter editor: edits parameters (evidence: `README.md`)
- Parameter editor → Parameter system: accesses facts (evidence: `src/QmlControls/ParameterEditorController.cc`)
- Ground operator → Application settings: sets preferences
- Ground operator → Onboard log download: downloads logs (evidence: `README.md`)
- Onboard log download → Vehicle file transfer: requests files (evidence: `src/AnalyzeView/OnboardLogs/OnboardLogController.cc`)
- Ground operator → Log analysis: analyzes logs (evidence: `README.md`)
- Ground operator → MAVLink inspector: inspects traffic (evidence: `README.md`)
- Ground operator → MAVLink console: uses console (evidence: `README.md`)
- Ground operator → Map and offline tiles: manages offline maps
- Vehicle registry → ADS-B tracking: tracks aircraft
- Vehicle registry → GPS services: uses GPS services
