# alireza787b/mavsdk_drone_show architecture

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

- Interactive diagram: https://gitdiagram.com/alireza787b/mavsdk_drone_show
- Repository: https://github.com/alireza787b/mavsdk_drone_show

## Overview

MDS is a PX4/MAVLink fleet-operations platform: operators use a React dashboard to monitor fleets, plan missions, and issue commands; GCS services coordinate execution and surface results. Distinct product branches include drone shows, Smart Swarm, QuickScout SAR, Swarm Trajectory, SITL, Simurgh, fleet enrollment, PX4 configuration, and unified logs. Paths come from the supplied tree. Edges use README-documented capabilities or the shown source relationships; unsampled integrations are not presented as verified call chains.

Main entry points: [`app/dashboard/drone-dashboard/src/App.js`](https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/App.js) (React dashboard), [`gcs-server/sar/service.py`](https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/sar/service.py) (SAR mission service), [`gcs-server/log_routes.py`](https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/log_routes.py) (Log access API), [`gcs-server/app_fastapi.py`](https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/app_fastapi.py) (GCS API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operator["Operator dashboard"]
  node_dashboard["React dashboard<br/>[App.js]"]
  node_quickscout_ui["QuickScout planning<br/>[QuickScoutPage.js]"]
  node_swarm_ui["Smart Swarm controls<br/>[SwarmOperations.js]"]
  node_trajectory_ui["Trajectory planning<br/>[SwarmTrajectory.js]"]
  node_simurgh_ui["Simurgh operator"]
  node_enrollment_ui["Fleet enrollment"]
  node_show_ui["Drone show management<br/>[ManageDroneShow.js]"]
end

subgraph group_gcs["GCS services"]
  node_gcs_api["GCS API<br/>[app_fastapi.py]"]
  node_command_pipeline["Command dispatch"]
  node_sar_routes["QuickScout API<br/>[routes.py]"]
  node_sitl["SITL control"]
  node_fleet_api["Fleet candidates API"]
  node_px4_params["PX4 parameter service<br/>[service.py]"]
end

subgraph group_missions["Mission workflows"]
  node_sar_service["SAR mission service<br/>[service.py]"]
  node_coverage["Coverage planning"]
  node_swarm["Smart Swarm runtime<br/>[smart_swarm.py]"]
  node_swarm_follower["Follower motion control"]
  node_trajectory_service["Trajectory processing"]
  node_show_runtime["Show execution<br/>[drone_show.py]"]
end

subgraph group_drone["Drone runtime"]
  node_drone_runtime["Drone runtime<br/>[drone.py]"]
  node_mavlink["MAVSDK flight interface"]
end

subgraph group_visibility["Operational visibility"]
  node_logs["Unified logs<br/>[server.py]"]
  node_log_api["Log access API<br/>[log_routes.py]"]
  node_log_analysis["ULog analysis<br/>[ulog_analysis.py]"]
end

node_operator(("Fleet operator"))
node_external_drone{{"PX4 drone fleet"}}

node_operator -->|"operates"| node_dashboard
node_dashboard -->|"opens"| node_quickscout_ui
node_dashboard -->|"opens"| node_swarm_ui
node_operator -->|"plans missions"| node_quickscout_ui
node_operator -->|"starts swarm"| node_swarm_ui
node_operator -->|"authors routes"| node_trajectory_ui
node_operator -->|"uses guarded actions"| node_simurgh_ui
node_operator -.->|"enrolls fleet"| node_enrollment_ui
node_operator -->|"manages show"| node_show_ui
node_dashboard -.->|"requests services"| node_gcs_api
node_gcs_api -.->|"registers routes"| node_sar_routes
node_sar_routes -->|"calls service"| node_sar_service
node_sar_service -->|"plans coverage"| node_coverage
node_sar_service -->|"queues launch"| node_command_pipeline
node_dashboard -.->|"submits trajectories"| node_trajectory_service
node_dashboard -.->|"controls mission"| node_swarm
node_swarm -.->|"uses controller"| node_swarm_follower
node_dashboard -.->|"launches show"| node_show_runtime
node_dashboard -->|"controls SITL"| node_sitl
node_command_pipeline -->|"dispatches commands"| node_external_drone
node_drone_runtime -.->|"controls flight"| node_mavlink
node_mavlink -.->|"sends MAVLink"| node_external_drone
node_dashboard -->|"reviews logs"| node_log_api
node_log_api -->|"summarizes ULog"| node_log_analysis
node_logs -.->|"provides sessions"| node_log_api
node_dashboard -->|"enrolls candidates"| node_fleet_api
node_dashboard -.->|"configures parameters"| node_px4_params

click node_dashboard "https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/App.js"
click node_quickscout_ui "https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/pages/QuickScoutPage.js"
click node_swarm_ui "https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/components/SwarmOperations.js"
click node_trajectory_ui "https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/pages/SwarmTrajectory.js"
click node_simurgh_ui "https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/pages/SimurghOperatorPage.js"
click node_enrollment_ui "https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/pages/FleetEnrollmentPage.js"
click node_show_ui "https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/pages/ManageDroneShow.js"
click node_gcs_api "https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/app_fastapi.py"
click node_command_pipeline "https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/command_submission_pipeline.py"
click node_sar_routes "https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/sar/routes.py"
click node_sar_service "https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/sar/service.py"
click node_coverage "https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/sar/coverage_planner.py"
click node_swarm "https://github.com/alireza787b/mavsdk_drone_show/blob/main/smart_swarm.py"
click node_swarm_follower "https://github.com/alireza787b/mavsdk_drone_show/blob/main/smart_swarm_src/follower_controller.py"
click node_trajectory_service "https://github.com/alireza787b/mavsdk_drone_show/blob/main/functions/swarm_trajectory_service.py"
click node_show_runtime "https://github.com/alireza787b/mavsdk_drone_show/blob/main/drone_show.py"
click node_sitl "https://github.com/alireza787b/mavsdk_drone_show/blob/main/src/sitl_control_service.py"
click node_drone_runtime "https://github.com/alireza787b/mavsdk_drone_show/blob/main/src/drone.py"
click node_mavlink "https://github.com/alireza787b/mavsdk_drone_show/blob/main/src/local_mavlink_controller.py"
click node_logs "https://github.com/alireza787b/mavsdk_drone_show/blob/main/mds_logging/server.py"
click node_log_api "https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/log_routes.py"
click node_log_analysis "https://github.com/alireza787b/mavsdk_drone_show/blob/main/mds_logging/ulog_analysis.py"
click node_fleet_api "https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/api_routes/fleet_candidates.py"
click node_px4_params "https://github.com/alireza787b/mavsdk_drone_show/blob/main/src/px4_params/service.py"

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_dashboard,node_quickscout_ui,node_swarm_ui,node_trajectory_ui,node_simurgh_ui,node_enrollment_ui,node_show_ui toneBlue
class node_gcs_api,node_command_pipeline,node_sar_routes,node_sitl,node_fleet_api,node_px4_params toneAmber
class node_sar_service,node_coverage,node_swarm,node_swarm_follower,node_trajectory_service,node_show_runtime toneMint
class node_drone_runtime,node_mavlink toneRose
class node_logs,node_log_api,node_log_analysis,node_operator,node_external_drone toneIndigo
```

## Components

### Operator dashboard

- [React dashboard](https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/App.js): `app/dashboard/drone-dashboard/src/App.js`
- [QuickScout planning](https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/pages/QuickScoutPage.js): `app/dashboard/drone-dashboard/src/pages/QuickScoutPage.js`
- [Smart Swarm controls](https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/components/SwarmOperations.js): `app/dashboard/drone-dashboard/src/components/SwarmOperations.js`
- [Trajectory planning](https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/pages/SwarmTrajectory.js): `app/dashboard/drone-dashboard/src/pages/SwarmTrajectory.js`
- [Simurgh operator](https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/pages/SimurghOperatorPage.js): `app/dashboard/drone-dashboard/src/pages/SimurghOperatorPage.js`
- [Fleet enrollment](https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/pages/FleetEnrollmentPage.js): `app/dashboard/drone-dashboard/src/pages/FleetEnrollmentPage.js`
- [Drone show management](https://github.com/alireza787b/mavsdk_drone_show/blob/main/app/dashboard/drone-dashboard/src/pages/ManageDroneShow.js): `app/dashboard/drone-dashboard/src/pages/ManageDroneShow.js`

### GCS services

- [GCS API](https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/app_fastapi.py): `gcs-server/app_fastapi.py`
- [Command dispatch](https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/command_submission_pipeline.py): `gcs-server/command_submission_pipeline.py`
- [QuickScout API](https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/sar/routes.py): `gcs-server/sar/routes.py`
- [SITL control](https://github.com/alireza787b/mavsdk_drone_show/blob/main/src/sitl_control_service.py): `src/sitl_control_service.py`
- [Fleet candidates API](https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/api_routes/fleet_candidates.py): `gcs-server/api_routes/fleet_candidates.py`
- [PX4 parameter service](https://github.com/alireza787b/mavsdk_drone_show/blob/main/src/px4_params/service.py): `src/px4_params/service.py`

### Mission workflows

- [SAR mission service](https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/sar/service.py): `gcs-server/sar/service.py`
- [Coverage planning](https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/sar/coverage_planner.py): `gcs-server/sar/coverage_planner.py`
- [Smart Swarm runtime](https://github.com/alireza787b/mavsdk_drone_show/blob/main/smart_swarm.py): `smart_swarm.py`
- [Follower motion control](https://github.com/alireza787b/mavsdk_drone_show/blob/main/smart_swarm_src/follower_controller.py): `smart_swarm_src/follower_controller.py`
- [Trajectory processing](https://github.com/alireza787b/mavsdk_drone_show/blob/main/functions/swarm_trajectory_service.py): `functions/swarm_trajectory_service.py`
- [Show execution](https://github.com/alireza787b/mavsdk_drone_show/blob/main/drone_show.py): `drone_show.py`

### Drone runtime

- [Drone runtime](https://github.com/alireza787b/mavsdk_drone_show/blob/main/src/drone.py): `src/drone.py`
- [MAVSDK flight interface](https://github.com/alireza787b/mavsdk_drone_show/blob/main/src/local_mavlink_controller.py): `src/local_mavlink_controller.py`

### Operational visibility

- [Unified logs](https://github.com/alireza787b/mavsdk_drone_show/blob/main/mds_logging/server.py): `mds_logging/server.py`
- [Log access API](https://github.com/alireza787b/mavsdk_drone_show/blob/main/gcs-server/log_routes.py): `gcs-server/log_routes.py`
- [ULog analysis](https://github.com/alireza787b/mavsdk_drone_show/blob/main/mds_logging/ulog_analysis.py): `mds_logging/ulog_analysis.py`

### Other components

- **Fleet operator**
- **PX4 drone fleet**

## Connections

- Fleet operator → React dashboard: operates (evidence: `README.md`)
- React dashboard → QuickScout planning: opens (evidence: `app/dashboard/drone-dashboard/src/App.js`)
- React dashboard → Smart Swarm controls: opens (evidence: `app/dashboard/drone-dashboard/src/App.js`)
- Fleet operator → QuickScout planning: plans missions (evidence: `README.md`)
- Fleet operator → Smart Swarm controls: starts swarm (evidence: `README.md`)
- Fleet operator → Trajectory planning: authors routes (evidence: `README.md`)
- Fleet operator → Simurgh operator: uses guarded actions (evidence: `README.md`)
- Fleet operator → Fleet enrollment: enrolls fleet
- Fleet operator → Drone show management: manages show (evidence: `README.md`)
- React dashboard → GCS API: requests services
- GCS API → QuickScout API: registers routes
- QuickScout API → SAR mission service: calls service (evidence: `gcs-server/sar/routes.py`)
- SAR mission service → Coverage planning: plans coverage (evidence: `gcs-server/sar/service.py`)
- SAR mission service → Command dispatch: queues launch (evidence: `gcs-server/sar/service.py`)
- React dashboard → Trajectory processing: submits trajectories
- React dashboard → Smart Swarm runtime: controls mission
- Smart Swarm runtime → Follower motion control: uses controller
- React dashboard → Show execution: launches show
- React dashboard → SITL control: controls SITL (evidence: `README.md`)
- Command dispatch → PX4 drone fleet: dispatches commands (evidence: `gcs-server/command_submission_pipeline.py`)
- Drone runtime → MAVSDK flight interface: controls flight
- MAVSDK flight interface → PX4 drone fleet: sends MAVLink
- React dashboard → Log access API: reviews logs (evidence: `README.md`)
- Log access API → ULog analysis: summarizes ULog (evidence: `gcs-server/log_routes.py`)
- Unified logs → Log access API: provides sessions
- React dashboard → Fleet candidates API: enrolls candidates
- React dashboard → PX4 parameter service: configures parameters
