# ardupilot/sitl_models architecture

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

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

## Overview

This repository combines ArduPilot simulation assets with a standalone VTOL mission-performance calculator. The calculator workflow is to provide aircraft and powertrain parameters, calculate flight performance, and print mission results; its component calls are visible in the excerpts and SOURCE INDEX. Gazebo and RealFlight contain model assets, while Gazebo also has vehicle configurations, worlds, missions, and launch scripts. The README is empty, and those asset directories were not sampled, so their internal runtime relationships are not asserted.

Main entry points: [`scripts/VTOL_model/vtol_model.py`](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/vtol_model.py) (Mission Calculator), [`scripts/VTOL_model/util.py`](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/util.py) (Physics Utilities), [`scripts/VTOL_model/propeller.py`](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/propeller.py) (Propeller Model), [`scripts/VTOL_model/battery.py`](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/battery.py) (Battery Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_calc["VTOL Calculator"]
  node_calculator["Mission Calculator<br/>[vtol_model.py]"]
  node_battery["Battery Model<br/>[battery.py]"]
  node_motor["Motor Model<br/>[motor.py]"]
  node_propeller["Propeller Model<br/>[propeller.py]"]
  node_propdata["Propeller Data<br/>[prop_data.py]"]
  node_wing["Wing Model<br/>[wing.py]"]
  node_util["Physics Utilities<br/>[util.py]"]
  node_results["Performance Results<br/>[vtol_model.py]"]
end

subgraph group_gazebo["Gazebo Simulation Assets"]
  node_vehicle_config["Vehicle Parameters"]
  node_gazebo_models["Vehicle Models"]
  node_gazebo_worlds["Simulation Worlds"]
  node_gazebo_missions["Mission Plans"]
  node_gazebo_launch["Launch Scripts"]
end

subgraph group_realflight["RealFlight Models"]
  node_realflight_assets["Aircraft Models"]
end

node_operator(("Engineer"))
node_gazebo_user(("SITL User"))

node_operator -->|"sets parameters"| node_calculator
node_calculator -->|"queries"| node_battery
node_calculator -->|"queries"| node_motor
node_calculator -->|"queries"| node_propeller
node_calculator -->|"calculates drag"| node_wing
node_calculator -->|"prints"| node_results
node_propeller -->|"reads coefficients"| node_propdata
node_battery -->|"imports"| node_util
node_motor -->|"imports"| node_util
node_propeller -->|"imports"| node_util
node_wing -->|"imports"| node_util
node_calculator -->|"imports"| node_util
node_gazebo_user -.-> node_vehicle_config
node_gazebo_user -.-> node_gazebo_launch

click node_calculator "https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/vtol_model.py"
click node_battery "https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/battery.py"
click node_motor "https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/motor.py"
click node_propeller "https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/propeller.py"
click node_propdata "https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/prop_data.py"
click node_wing "https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/wing.py"
click node_util "https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/util.py"
click node_results "https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/vtol_model.py"
click node_vehicle_config "https://github.com/ardupilot/sitl_models/tree/master/Gazebo/config"
click node_gazebo_models "https://github.com/ardupilot/sitl_models/tree/master/Gazebo/models"
click node_gazebo_worlds "https://github.com/ardupilot/sitl_models/tree/master/Gazebo/worlds"
click node_gazebo_missions "https://github.com/ardupilot/sitl_models/tree/master/Gazebo/missions"
click node_gazebo_launch "https://github.com/ardupilot/sitl_models/tree/master/Gazebo/launch"
click node_realflight_assets "https://github.com/ardupilot/sitl_models/tree/master/RealFlight"

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_calculator,node_battery,node_motor,node_propeller,node_propdata,node_wing,node_util,node_results,node_gazebo_user toneBlue
class node_vehicle_config,node_gazebo_models,node_gazebo_worlds,node_gazebo_missions,node_gazebo_launch toneAmber
class node_realflight_assets toneMint
class node_operator toneIndigo
```

## Components

### VTOL Calculator

- [Mission Calculator](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/vtol_model.py): `scripts/VTOL_model/vtol_model.py`
- [Battery Model](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/battery.py): `scripts/VTOL_model/battery.py`
- [Motor Model](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/motor.py): `scripts/VTOL_model/motor.py`
- [Propeller Model](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/propeller.py): `scripts/VTOL_model/propeller.py`
- [Propeller Data](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/prop_data.py): `scripts/VTOL_model/prop_data.py`
- [Wing Model](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/wing.py): `scripts/VTOL_model/wing.py`
- [Physics Utilities](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/util.py): `scripts/VTOL_model/util.py`
- [Performance Results](https://github.com/ardupilot/sitl_models/blob/master/scripts/VTOL_model/vtol_model.py): `scripts/VTOL_model/vtol_model.py`

### Gazebo Simulation Assets

- [Vehicle Parameters](https://github.com/ardupilot/sitl_models/tree/master/Gazebo/config): `Gazebo/config`
- [Vehicle Models](https://github.com/ardupilot/sitl_models/tree/master/Gazebo/models): `Gazebo/models`
- [Simulation Worlds](https://github.com/ardupilot/sitl_models/tree/master/Gazebo/worlds): `Gazebo/worlds`
- [Mission Plans](https://github.com/ardupilot/sitl_models/tree/master/Gazebo/missions): `Gazebo/missions`
- [Launch Scripts](https://github.com/ardupilot/sitl_models/tree/master/Gazebo/launch): `Gazebo/launch`

### RealFlight Models

- [Aircraft Models](https://github.com/ardupilot/sitl_models/tree/master/RealFlight): `RealFlight`

### Other components

- **Engineer**
- **SITL User**

## Connections

- Engineer → Mission Calculator: sets parameters (evidence: `scripts/VTOL_model/vtol_model.py`)
- Mission Calculator → Battery Model: queries (evidence: `scripts/VTOL_model/vtol_model.py`)
- Mission Calculator → Motor Model: queries (evidence: `scripts/VTOL_model/vtol_model.py`)
- Mission Calculator → Propeller Model: queries (evidence: `scripts/VTOL_model/vtol_model.py`)
- Mission Calculator → Wing Model: calculates drag (evidence: `scripts/VTOL_model/vtol_model.py`)
- Mission Calculator → Performance Results: prints (evidence: `scripts/VTOL_model/vtol_model.py`)
- Propeller Model → Propeller Data: reads coefficients (evidence: `scripts/VTOL_model/propeller.py`)
- Battery Model → Physics Utilities: imports (evidence: `scripts/VTOL_model/battery.py`)
- Motor Model → Physics Utilities: imports (evidence: `scripts/VTOL_model/motor.py`)
- Propeller Model → Physics Utilities: imports (evidence: `scripts/VTOL_model/propeller.py`)
- Wing Model → Physics Utilities: imports (evidence: `scripts/VTOL_model/wing.py`)
- Mission Calculator → Physics Utilities: imports (evidence: `scripts/VTOL_model/vtol_model.py`)
- SITL User → Vehicle Parameters
- SITL User → Launch Scripts
