# gininipushes/ardupilot architecture

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

- Interactive diagram: https://gitdiagram.com/gininipushes/ardupilot
- Repository: https://github.com/gininipushes/ardupilot

## Overview

ArduPilot is embedded autopilot firmware for multiple vehicle classes, including Copter, Plane, Rover, Sub, Antenna Tracker, and Blimp. The principal workflow is a pilot or ground station providing commands to vehicle firmware, which selects a mode and produces vehicle control outputs; the README establishes the product scope, but the sampled excerpts do not expose those runtime call paths. The graph therefore marks those links as unverified. The sampled storage code supports a more concrete internal view of persistent parameters and mission data. Major vehicle, peripheral, replay, and control-library branches are represented from the tree; unsampled connections are intentionally omitted or dashed.

Main entry points: [`ArduCopter`](https://github.com/gininipushes/ardupilot/tree/master/ArduCopter) (Copter Firmware), [`ArduPlane`](https://github.com/gininipushes/ardupilot/tree/master/ArduPlane) (Plane Firmware), [`libraries/AP_HAL/Storage.h`](https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL/Storage.h) (HAL Storage Interface), [`libraries/AC_Fence`](https://github.com/gininipushes/ardupilot/tree/master/libraries/AC_Fence) (Geofence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_vehicles["Vehicle Firmware"]
  node_copter["Copter Firmware"]
  node_plane["Plane Firmware"]
  node_rover["Rover Firmware"]
  node_sub["Sub Firmware"]
  node_tracker["Tracker Firmware"]
  node_blimp["Blimp Firmware"]
  node_periph["Peripheral Firmware"]
end

subgraph group_control["Control Libraries"]
  node_flight_control["Attitude Control"]
  node_autotune["Auto Tuning"]
  node_avoidance["Obstacle Avoidance"]
  node_fence["Geofence"]
  node_pitch["Fixed-Wing Controllers"]
end

subgraph group_platform["Platform Services"]
  node_serial["Serial Manager"]
  node_storage_manager["Storage Manager<br/>[StorageManager.cpp]"]
  node_flash_storage["Flash Storage Engine"]
  node_hal_storage["HAL Storage Interface<br/>[Storage.h]"]
  node_chibios_storage[("ChibiOS Storage<br/>[Storage.cpp]")]
  node_sitl_storage[("SITL Storage<br/>[Storage.cpp]")]
  node_linux_storage[("Linux Storage<br/>[Storage.cpp]")]
  node_esp_storage[("ESP32 Storage<br/>[Storage.cpp]")]
end

subgraph group_support["Runtime Tools"]
  node_replay["Log Replay<br/>[Replay.cpp]"]
end

node_pilot(("Pilot / GCS"))
node_filesystem[("Filesystem")]

node_pilot -.->|"commands"| node_copter
node_pilot -.->|"commands"| node_plane
node_pilot -.->|"commands"| node_rover
node_pilot -.->|"commands"| node_sub
node_pilot -.->|"commands"| node_tracker
node_pilot -.->|"commands"| node_blimp
node_copter -.->|"uses"| node_flight_control
node_plane -.->|"uses"| node_pitch
node_plane -.->|"uses"| node_flight_control
node_copter -.->|"uses"| node_autotune
node_copter -.->|"uses"| node_avoidance
node_copter -.->|"uses"| node_fence
node_plane -.->|"uses"| node_avoidance
node_plane -.->|"uses"| node_fence
node_rover -.->|"uses"| node_fence
node_storage_manager -->|"reads/writes"| node_filesystem
node_chibios_storage -->|"reads/writes"| node_filesystem
node_linux_storage -->|"reads/writes"| node_filesystem
node_storage_manager -.->|"uses"| node_flash_storage
node_hal_storage -.->|"implemented by"| node_chibios_storage
node_hal_storage -.->|"implemented by"| node_sitl_storage
node_hal_storage -.->|"implemented by"| node_linux_storage
node_hal_storage -.->|"implemented by"| node_esp_storage

click node_copter "https://github.com/gininipushes/ardupilot/tree/master/ArduCopter"
click node_plane "https://github.com/gininipushes/ardupilot/tree/master/ArduPlane"
click node_rover "https://github.com/gininipushes/ardupilot/tree/master/Rover"
click node_sub "https://github.com/gininipushes/ardupilot/tree/master/ArduSub"
click node_tracker "https://github.com/gininipushes/ardupilot/tree/master/AntennaTracker"
click node_blimp "https://github.com/gininipushes/ardupilot/tree/master/Blimp"
click node_periph "https://github.com/gininipushes/ardupilot/tree/master/Tools/AP_Periph"
click node_flight_control "https://github.com/gininipushes/ardupilot/tree/master/libraries/AC_AttitudeControl"
click node_autotune "https://github.com/gininipushes/ardupilot/tree/master/libraries/AC_AutoTune"
click node_avoidance "https://github.com/gininipushes/ardupilot/tree/master/libraries/AC_Avoidance"
click node_fence "https://github.com/gininipushes/ardupilot/tree/master/libraries/AC_Fence"
click node_pitch "https://github.com/gininipushes/ardupilot/blob/master/libraries/APM_Control/AP_PitchController.cpp"
click node_serial "https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_SerialManager/AP_SerialManager.cpp"
click node_storage_manager "https://github.com/gininipushes/ardupilot/blob/master/libraries/StorageManager/StorageManager.cpp"
click node_flash_storage "https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_FlashStorage/AP_FlashStorage.cpp"
click node_hal_storage "https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL/Storage.h"
click node_chibios_storage "https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL_ChibiOS/Storage.cpp"
click node_sitl_storage "https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL_SITL/Storage.cpp"
click node_linux_storage "https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL_Linux/Storage.cpp"
click node_esp_storage "https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL_ESP32/Storage.cpp"
click node_replay "https://github.com/gininipushes/ardupilot/blob/master/Tools/Replay/Replay.cpp"

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_copter,node_plane,node_rover,node_sub,node_tracker,node_blimp,node_periph toneBlue
class node_flight_control,node_autotune,node_avoidance,node_fence,node_pitch,node_filesystem toneAmber
class node_serial,node_storage_manager,node_flash_storage,node_hal_storage,node_chibios_storage,node_sitl_storage,node_linux_storage,node_esp_storage toneMint
class node_replay toneRose
class node_pilot toneIndigo
```

## Components

### Vehicle Firmware

- [Copter Firmware](https://github.com/gininipushes/ardupilot/tree/master/ArduCopter): `ArduCopter`
- [Plane Firmware](https://github.com/gininipushes/ardupilot/tree/master/ArduPlane): `ArduPlane`
- [Rover Firmware](https://github.com/gininipushes/ardupilot/tree/master/Rover): `Rover`
- [Sub Firmware](https://github.com/gininipushes/ardupilot/tree/master/ArduSub): `ArduSub`
- [Tracker Firmware](https://github.com/gininipushes/ardupilot/tree/master/AntennaTracker): `AntennaTracker`
- [Blimp Firmware](https://github.com/gininipushes/ardupilot/tree/master/Blimp): `Blimp`
- [Peripheral Firmware](https://github.com/gininipushes/ardupilot/tree/master/Tools/AP_Periph): `Tools/AP_Periph`

### Control Libraries

- [Attitude Control](https://github.com/gininipushes/ardupilot/tree/master/libraries/AC_AttitudeControl): `libraries/AC_AttitudeControl`
- [Auto Tuning](https://github.com/gininipushes/ardupilot/tree/master/libraries/AC_AutoTune): `libraries/AC_AutoTune`
- [Obstacle Avoidance](https://github.com/gininipushes/ardupilot/tree/master/libraries/AC_Avoidance): `libraries/AC_Avoidance`
- [Geofence](https://github.com/gininipushes/ardupilot/tree/master/libraries/AC_Fence): `libraries/AC_Fence`
- [Fixed-Wing Controllers](https://github.com/gininipushes/ardupilot/blob/master/libraries/APM_Control/AP_PitchController.cpp): `libraries/APM_Control/AP_PitchController.cpp`

### Platform Services

- [Serial Manager](https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_SerialManager/AP_SerialManager.cpp): `libraries/AP_SerialManager/AP_SerialManager.cpp`
- [Storage Manager](https://github.com/gininipushes/ardupilot/blob/master/libraries/StorageManager/StorageManager.cpp): `libraries/StorageManager/StorageManager.cpp`
- [Flash Storage Engine](https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_FlashStorage/AP_FlashStorage.cpp): `libraries/AP_FlashStorage/AP_FlashStorage.cpp`
- [HAL Storage Interface](https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL/Storage.h): `libraries/AP_HAL/Storage.h`
- [ChibiOS Storage](https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL_ChibiOS/Storage.cpp): `libraries/AP_HAL_ChibiOS/Storage.cpp`
- [SITL Storage](https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL_SITL/Storage.cpp): `libraries/AP_HAL_SITL/Storage.cpp`
- [Linux Storage](https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL_Linux/Storage.cpp): `libraries/AP_HAL_Linux/Storage.cpp`
- [ESP32 Storage](https://github.com/gininipushes/ardupilot/blob/master/libraries/AP_HAL_ESP32/Storage.cpp): `libraries/AP_HAL_ESP32/Storage.cpp`

### Runtime Tools

- [Log Replay](https://github.com/gininipushes/ardupilot/blob/master/Tools/Replay/Replay.cpp): `Tools/Replay/Replay.cpp`

### Other components

- **Pilot / GCS**
- **Filesystem**

## Connections

- Pilot / GCS → Copter Firmware: commands (evidence: `README.md`)
- Pilot / GCS → Plane Firmware: commands (evidence: `README.md`)
- Pilot / GCS → Rover Firmware: commands (evidence: `README.md`)
- Pilot / GCS → Sub Firmware: commands (evidence: `README.md`)
- Pilot / GCS → Tracker Firmware: commands (evidence: `README.md`)
- Pilot / GCS → Blimp Firmware: commands (evidence: `README.md`)
- Copter Firmware → Attitude Control: uses
- Plane Firmware → Fixed-Wing Controllers: uses
- Plane Firmware → Attitude Control: uses
- Copter Firmware → Auto Tuning: uses
- Copter Firmware → Obstacle Avoidance: uses
- Copter Firmware → Geofence: uses
- Plane Firmware → Obstacle Avoidance: uses
- Plane Firmware → Geofence: uses
- Rover Firmware → Geofence: uses
- Storage Manager → Filesystem: reads/writes (evidence: `libraries/StorageManager/StorageManager.cpp`)
- ChibiOS Storage → Filesystem: reads/writes (evidence: `libraries/AP_HAL_ChibiOS/Storage.cpp`)
- Linux Storage → Filesystem: reads/writes (evidence: `libraries/AP_HAL_Linux/Storage.cpp`)
- Storage Manager → Flash Storage Engine: uses
- HAL Storage Interface → ChibiOS Storage: implemented by
- HAL Storage Interface → SITL Storage: implemented by
- HAL Storage Interface → Linux Storage: implemented by
- HAL Storage Interface → ESP32 Storage: implemented by
