# godalaanjireddy/ai-drone-navigation-system architecture

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

- Interactive diagram: https://gitdiagram.com/godalaanjireddy/ai-drone-navigation-system
- Repository: https://github.com/godalaanjireddy/ai-drone-navigation-system

## Overview

This repository is a collection of AirSim drone-navigation examples rather than one clearly unified runtime. The principal workflow plans or selects waypoints, flies them while checking for obstacles, and captures images or displays the route. Separate scripts add battery-aware navigation and a disaster-response simulation; terrain stitching and geographic mapping are additional capabilities. The README documents several features and entry points, but the sampled code does not establish a single master-script call chain, so those relationships are not inferred.

Main entry points: [`main.py`](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/main.py) (Grid flight and terrain capture), [`ai_drone_navigation.py`](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/ai_drone_navigation.py) (Planned flight), [`sim10.py`](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/sim10.py) (Battery-aware flight), [`path.txt`](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/path.txt) (Saved path)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Planning and navigation"]
  node_planner["A* planner<br/>[path_planner.py]"]
  node_plannedflight["Planned flight"]
  node_integratedflight["Grid flight and terrain capture<br/>[main.py]"]
  node_pathfile["Saved path<br/>[path.txt]"]
end

subgraph group_flight["Flight and sensing"]
  node_smartdrone["Battery-aware flight<br/>[sim10.py]"]
  node_airsim["AirSim simulator"]
  node_disaster["Disaster-response simulation<br/>[airsim2.py]"]
end

subgraph group_mapping["Mapping and imagery"]
  node_routeview["Live route display"]
  node_liveposition["Live position map<br/>[sim10.py]"]
  node_realtimemap["Geographic live map<br/>[realtime_map.py]"]
  node_terrain["Terrain image stitching<br/>[terrain_map.py]"]
  node_captures["Captured images"]
end

node_operator(("Operator"))

node_operator -.->|"starts mission"| node_plannedflight
node_operator -.->|"runs example"| node_integratedflight
node_operator -.->|"runs simulation"| node_smartdrone
node_plannedflight -->|"requests path"| node_planner
node_plannedflight -->|"controls drone"| node_airsim
node_integratedflight -->|"controls drone"| node_airsim
node_integratedflight -->|"writes route"| node_pathfile
node_integratedflight -->|"saves images"| node_captures
node_smartdrone -->|"controls drone"| node_airsim
node_smartdrone -->|"updates display"| node_liveposition
node_airsim -.->|"provides camera frames"| node_captures
node_disaster -.->|"controls drone"| node_airsim
node_pathfile -.->|"supplies route"| node_terrain
node_captures -->|"stitches images"| node_terrain
node_operator -.->|"opens visualization"| node_routeview
node_operator -.->|"opens map"| node_realtimemap

click node_planner "https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/path_planner.py"
click node_plannedflight "https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/ai_drone_navigation.py"
click node_integratedflight "https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/main.py"
click node_smartdrone "https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/sim10.py"
click node_disaster "https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/airsim2.py"
click node_routeview "https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/map_visualization.py"
click node_liveposition "https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/sim10.py"
click node_realtimemap "https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/realtime_map.py"
click node_terrain "https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/terrain_map.py"
click node_pathfile "https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/path.txt"

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_planner,node_plannedflight,node_integratedflight,node_pathfile toneBlue
class node_smartdrone,node_airsim,node_disaster toneAmber
class node_routeview,node_liveposition,node_realtimemap,node_terrain,node_captures toneMint
class node_operator toneIndigo
```

## Components

### Planning and navigation

- [A* planner](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/path_planner.py): `path_planner.py`
- [Planned flight](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/ai_drone_navigation.py): `ai_drone_navigation.py`
- [Grid flight and terrain capture](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/main.py): `main.py`
- [Saved path](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/path.txt): `path.txt`

### Flight and sensing

- [Battery-aware flight](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/sim10.py): `sim10.py`
- **AirSim simulator**
- [Disaster-response simulation](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/airsim2.py): `airsim2.py`

### Mapping and imagery

- [Live route display](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/map_visualization.py): `map_visualization.py`
- [Live position map](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/sim10.py): `sim10.py`
- [Geographic live map](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/realtime_map.py): `realtime_map.py`
- [Terrain image stitching](https://github.com/godalaanjireddy/ai-drone-navigation-system/blob/main/terrain_map.py): `terrain_map.py`
- **Captured images**

### Other components

- **Operator**

## Connections

- Operator → Planned flight: starts mission (evidence: `README.md`)
- Operator → Grid flight and terrain capture: runs example (evidence: `README.md`)
- Operator → Battery-aware flight: runs simulation (evidence: `README.md`)
- Planned flight → A* planner: requests path (evidence: `ai_drone_navigation.py`)
- Planned flight → AirSim simulator: controls drone (evidence: `ai_drone_navigation.py`)
- Grid flight and terrain capture → AirSim simulator: controls drone (evidence: `main.py`)
- Grid flight and terrain capture → Saved path: writes route (evidence: `main.py`)
- Grid flight and terrain capture → Captured images: saves images (evidence: `main.py`)
- Battery-aware flight → AirSim simulator: controls drone (evidence: `sim10.py`)
- Battery-aware flight → Live position map: updates display (evidence: `sim10.py`)
- AirSim simulator → Captured images: provides camera frames
- Disaster-response simulation → AirSim simulator: controls drone
- Saved path → Terrain image stitching: supplies route
- Captured images → Terrain image stitching: stitches images (evidence: `terrain_map.py`)
- Operator → Live route display: opens visualization (evidence: `README.md`)
- Operator → Geographic live map: opens map (evidence: `README.md`)
