# ttrinkqlzy/infotech_kaifotech architecture

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

- Interactive diagram: https://gitdiagram.com/ttrinkqlzy/infotech_kaifotech
- Repository: https://github.com/ttrinkqlzy/infotech_kaifotech

## Overview

This is a real-time UAV flight simulator. The user selects a drone profile and configures terrain and weather, then controls a simulated flight and observes its behavior through 3D rendering, sensor overlays, and the HUD; reports can be exported afterward. The main simulation loop orchestrates the runtime, while physics, weather, sensors, and autopilot form the principal simulation layers. README capabilities are included where implementation excerpts were not available; those relationships cite the README rather than implying unsampled code was inspected.

Main entry points: [`main.py`](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/main.py) (Simulation loop), [`ui/menu.py`](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/ui/menu.py) (Flight menu), [`core/drone_model.py`](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/drone_model.py) (Drone profiles), [`core/math3d.py`](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/math3d.py) (3D mathematics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Flight setup"]
  node_menu["Flight menu<br/>[menu.py]"]
  node_profiles["Drone profiles<br/>[drone_model.py]"]
  node_profiledata["Model presets"]
  node_editor["Drone editor<br/>[editor.py]"]
end

subgraph group_simulation["Flight simulation"]
  node_sim["Simulation loop<br/>[main.py]"]
  node_physics["Flight physics<br/>[physics.py]"]
  node_weather["Weather model<br/>[weather.py]"]
  node_autopilot["Autopilot<br/>[autopilot.py]"]
  node_sensors["Sensor model<br/>[sensors.py]"]
  node_math["3D mathematics<br/>[math3d.py]"]
end

subgraph group_worldview["World and display"]
  node_terrain["Terrain generator<br/>[terrain.py]"]
  node_renderer["3D renderer<br/>[renderer.py]"]
  node_camera["Flight cameras<br/>[renderer.py]"]
  node_hud["Flight HUD<br/>[hud.py]"]
end

subgraph group_reporting["Telemetry and reports"]
  node_telemetry["Telemetry recorder<br/>[telemetry.py]"]
  node_reports["Flight reports"]
end

node_pilot(("Pilot"))

node_pilot -->|"configures flight"| node_menu
node_menu -->|"selects profile"| node_profiles
node_profiles -->|"loads profiles"| node_profiledata
node_menu -->|"configures weather"| node_weather
node_menu -->|"selects terrain"| node_terrain
node_pilot -->|"edits drone"| node_editor
node_editor -->|"saves profile"| node_profiles
node_menu -->|"starts simulation"| node_sim
node_sim -->|"loads profiles"| node_profiles
node_sim -->|"updates flight"| node_physics
node_physics -->|"reads conditions"| node_weather
node_sim -->|"updates commands"| node_autopilot
node_autopilot -->|"uses math"| node_math
node_sim -->|"updates sensors"| node_sensors
node_sensors -->|"uses rotations"| node_math
node_sim -->|"reads ground"| node_terrain
node_sim -->|"renders flight"| node_renderer
node_sim -->|"updates camera"| node_camera
node_renderer -->|"uses transforms"| node_math
node_sim -->|"draws telemetry"| node_hud
node_sim -->|"records flight"| node_telemetry
node_telemetry -->|"exports reports"| node_reports
node_pilot -->|"controls flight"| node_sim

click node_menu "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/ui/menu.py"
click node_profiles "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/drone_model.py"
click node_profiledata "https://github.com/ttrinkqlzy/infotech_kaifotech/tree/main/models"
click node_editor "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/ui/editor.py"
click node_sim "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/main.py"
click node_physics "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/physics.py"
click node_weather "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/weather.py"
click node_autopilot "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/autopilot.py"
click node_sensors "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/sensors.py"
click node_math "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/math3d.py"
click node_terrain "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/world/terrain.py"
click node_renderer "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/world/renderer.py"
click node_camera "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/world/renderer.py"
click node_hud "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/ui/hud.py"
click node_telemetry "https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/telemetry.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_menu,node_profiles,node_profiledata,node_editor toneBlue
class node_sim,node_physics,node_weather,node_autopilot,node_sensors,node_math toneAmber
class node_terrain,node_renderer,node_camera,node_hud toneMint
class node_telemetry,node_reports toneRose
class node_pilot toneIndigo
```

## Components

### Flight setup

- [Flight menu](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/ui/menu.py): `ui/menu.py`
- [Drone profiles](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/drone_model.py): `core/drone_model.py`
- [Model presets](https://github.com/ttrinkqlzy/infotech_kaifotech/tree/main/models): `models`
- [Drone editor](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/ui/editor.py): `ui/editor.py`

### Flight simulation

- [Simulation loop](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/main.py): `main.py`
- [Flight physics](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/physics.py): `core/physics.py`
- [Weather model](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/weather.py): `core/weather.py`
- [Autopilot](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/autopilot.py): `core/autopilot.py`
- [Sensor model](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/sensors.py): `core/sensors.py`
- [3D mathematics](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/math3d.py): `core/math3d.py`

### World and display

- [Terrain generator](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/world/terrain.py): `world/terrain.py`
- [3D renderer](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/world/renderer.py): `world/renderer.py`
- [Flight cameras](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/world/renderer.py): `world/renderer.py`
- [Flight HUD](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/ui/hud.py): `ui/hud.py`

### Telemetry and reports

- [Telemetry recorder](https://github.com/ttrinkqlzy/infotech_kaifotech/blob/main/core/telemetry.py): `core/telemetry.py`
- **Flight reports**

### Other components

- **Pilot**

## Connections

- Pilot → Flight menu: configures flight (evidence: `README.md`)
- Flight menu → Drone profiles: selects profile (evidence: `README.md`)
- Drone profiles → Model presets: loads profiles (evidence: `README.md`)
- Flight menu → Weather model: configures weather (evidence: `ui/menu.py`)
- Flight menu → Terrain generator: selects terrain (evidence: `ui/menu.py`)
- Pilot → Drone editor: edits drone (evidence: `README.md`)
- Drone editor → Drone profiles: saves profile (evidence: `ui/editor.py`)
- Flight menu → Simulation loop: starts simulation (evidence: `README.md`)
- Simulation loop → Drone profiles: loads profiles (evidence: `main.py`)
- Simulation loop → Flight physics: updates flight (evidence: `main.py`)
- Flight physics → Weather model: reads conditions (evidence: `core/physics.py`)
- Simulation loop → Autopilot: updates commands (evidence: `main.py`)
- Autopilot → 3D mathematics: uses math (evidence: `core/autopilot.py`)
- Simulation loop → Sensor model: updates sensors (evidence: `main.py`)
- Sensor model → 3D mathematics: uses rotations (evidence: `core/sensors.py`)
- Simulation loop → Terrain generator: reads ground (evidence: `main.py`)
- Simulation loop → 3D renderer: renders flight (evidence: `main.py`)
- Simulation loop → Flight cameras: updates camera (evidence: `main.py`)
- 3D renderer → 3D mathematics: uses transforms (evidence: `world/renderer.py`)
- Simulation loop → Flight HUD: draws telemetry (evidence: `main.py`)
- Simulation loop → Telemetry recorder: records flight (evidence: `main.py`)
- Telemetry recorder → Flight reports: exports reports (evidence: `README.md`)
- Pilot → Simulation loop: controls flight (evidence: `README.md`)
