# duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option. architecture

> Architecture diagram of the GitHub repository duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option., generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option.
- Repository: https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option.
- Video tour (about a minute): https://gitdiagram.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./video

## Overview

This is a Nuclear Option game mod replacing the Aryx F-22E’s basic flight controls with a configurable fly-by-wire controller. The principal runtime path is game control hooks into aircraft registration and controller setup, then control-law computation and actuator allocation to aerodynamic surfaces and thrust-vectoring nozzles. Other documented behavior includes high-lift scheduling, envelope protection, and airfoil/aerodynamic changes; the README also describes stock and buffed variants. Some subsystem links are dashed because their call sites were not shown in the sampled excerpts.

Main entry points: [`src/FCS/FcsController.cs`](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/FcsController.cs) (FCS Controller), [`src/FCS/Plugin.cs`](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Plugin.cs) (Mod Plugin), [`src/FCS/Registry.cs`](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Registry.cs) (Aircraft Registry), [`src/FCS/SurfaceEffector.cs`](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/SurfaceEffector.cs) (Surface Effector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_integration["Game Integration"]
  node_plugin["Mod Plugin<br/>[Plugin.cs]"]
  node_hooks["Control Hooks<br/>[Hooks.cs]"]
  node_registry["Aircraft Registry<br/>[Registry.cs]"]
  node_devplugin["Dev Unlock<br/>[FcsDevPlugin.cs]"]
end

subgraph group_control["Flight Control"]
  node_controller["FCS Controller<br/>[FcsController.cs]"]
  node_allocator["Control Allocator<br/>[Allocator.cs]"]
  node_telemetry["Telemetry<br/>[Telemetry.cs]"]
  node_countermeasures["Countermeasures<br/>[Countermeasures.cs]"]
end

subgraph group_actuation["Actuation"]
  node_surface["Surface Effector<br/>[SurfaceEffector.cs]"]
  node_tvc["TVC Effector<br/>[TvcEffector.cs]"]
  node_flaps["Flap System<br/>[FlapSystem.cs]"]
  node_effector["Effector Model<br/>[Effector.cs]"]
  node_nozzle["Nozzle Rig<br/>[NozzleRig.cs]"]
  node_nozzledat["Nozzle Mesh Data<br/>[NozzleMeshData.cs]"]
end

subgraph group_tuning["Aircraft Tuning"]
  node_airfoil["Airfoil Table<br/>[AirfoilTable.cs]"]
  node_asymcap["Asymmetric Limits<br/>[AsymCap.cs]"]
  node_drag["Drag Relief<br/>[DragRelief.cs]"]
  node_access["Game Accessors<br/>[Acc.cs]"]
end

node_pilot(("Pilot / Game"))

node_pilot -.->|"provides controls"| node_hooks
node_plugin -->|"patches"| node_hooks
node_registry -->|"creates"| node_controller
node_controller -->|"solves commands"| node_allocator
node_controller -->|"allocates surfaces"| node_surface
node_controller -.->|"allocates thrust vectoring"| node_tvc
node_controller -.->|"schedules high lift"| node_flaps
node_surface -.->|"extends"| node_effector
node_tvc -.->|"extends"| node_effector
node_registry -->|"sets up nozzles"| node_nozzle
node_nozzle -.->|"builds mesh from"| node_nozzledat
node_controller -.->|"reports state"| node_telemetry
node_controller -.->|"uses envelope limits"| node_asymcap
node_surface -.->|"evaluates aerodynamics"| node_airfoil
node_plugin -.->|"configures"| node_countermeasures
node_plugin -.->|"attaches relief"| node_drag
node_drag -->|"reads lift and drag"| node_airfoil
node_registry -.->|"uses accessors"| node_access
node_devplugin -.->|"extends configuration"| node_plugin

click node_plugin "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Plugin.cs"
click node_hooks "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Hooks.cs"
click node_registry "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Registry.cs"
click node_devplugin "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/DevUnlock/FcsDevPlugin.cs"
click node_controller "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/FcsController.cs"
click node_allocator "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Allocator.cs"
click node_telemetry "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Telemetry.cs"
click node_countermeasures "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Countermeasures.cs"
click node_surface "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/SurfaceEffector.cs"
click node_tvc "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/TvcEffector.cs"
click node_flaps "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/FlapSystem.cs"
click node_effector "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Effector.cs"
click node_nozzle "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/NozzleRig.cs"
click node_nozzledat "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/NozzleMeshData.cs"
click node_airfoil "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/AirfoilTable.cs"
click node_asymcap "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/AsymCap.cs"
click node_drag "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/DragRelief.cs"
click node_access "https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Acc.cs"

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_plugin,node_hooks,node_registry,node_devplugin toneBlue
class node_controller,node_allocator,node_telemetry,node_countermeasures toneAmber
class node_surface,node_tvc,node_flaps,node_effector,node_nozzle,node_nozzledat toneMint
class node_airfoil,node_asymcap,node_drag,node_access toneRose
class node_pilot toneIndigo
```

## Components

### Game Integration

- [Mod Plugin](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Plugin.cs): `src/FCS/Plugin.cs`
- [Control Hooks](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Hooks.cs): `src/FCS/Hooks.cs`
- [Aircraft Registry](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Registry.cs): `src/FCS/Registry.cs`
- [Dev Unlock](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/DevUnlock/FcsDevPlugin.cs): `src/DevUnlock/FcsDevPlugin.cs`

### Flight Control

- [FCS Controller](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/FcsController.cs): `src/FCS/FcsController.cs`
- [Control Allocator](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Allocator.cs): `src/FCS/Allocator.cs`
- [Telemetry](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Telemetry.cs): `src/FCS/Telemetry.cs`
- [Countermeasures](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Countermeasures.cs): `src/FCS/Countermeasures.cs`

### Actuation

- [Surface Effector](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/SurfaceEffector.cs): `src/FCS/SurfaceEffector.cs`
- [TVC Effector](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/TvcEffector.cs): `src/FCS/TvcEffector.cs`
- [Flap System](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/FlapSystem.cs): `src/FCS/FlapSystem.cs`
- [Effector Model](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Effector.cs): `src/FCS/Effector.cs`
- [Nozzle Rig](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/NozzleRig.cs): `src/FCS/NozzleRig.cs`
- [Nozzle Mesh Data](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/NozzleMeshData.cs): `src/FCS/NozzleMeshData.cs`

### Aircraft Tuning

- [Airfoil Table](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/AirfoilTable.cs): `src/FCS/AirfoilTable.cs`
- [Asymmetric Limits](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/AsymCap.cs): `src/FCS/AsymCap.cs`
- [Drag Relief](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/DragRelief.cs): `src/FCS/DragRelief.cs`
- [Game Accessors](https://github.com/duythinh2022-ui/advanced-flight-controls-addon-for-aryx-s-f-22e-mod-for-nuclear-option./blob/main/src/FCS/Acc.cs): `src/FCS/Acc.cs`

### Other components

- **Pilot / Game**

## Connections

- Pilot / Game → Control Hooks: provides controls
- Mod Plugin → Control Hooks: patches (evidence: `src/FCS/Plugin.cs`)
- Aircraft Registry → FCS Controller: creates (evidence: `src/FCS/Registry.cs`)
- FCS Controller → Control Allocator: solves commands (evidence: `src/FCS/FcsController.cs`)
- FCS Controller → Surface Effector: allocates surfaces (evidence: `src/FCS/FcsController.cs`)
- FCS Controller → TVC Effector: allocates thrust vectoring (evidence: `src/FCS/FcsController.cs`)
- FCS Controller → Flap System: schedules high lift (evidence: `src/FCS/FcsController.cs`)
- Surface Effector → Effector Model: extends (evidence: `src/FCS/SurfaceEffector.cs`)
- TVC Effector → Effector Model: extends (evidence: `src/FCS/TvcEffector.cs`)
- Aircraft Registry → Nozzle Rig: sets up nozzles (evidence: `src/FCS/Registry.cs`)
- Nozzle Rig → Nozzle Mesh Data: builds mesh from (evidence: `src/FCS/NozzleRig.cs`)
- FCS Controller → Telemetry: reports state (evidence: `src/FCS/FcsController.cs`)
- FCS Controller → Asymmetric Limits: uses envelope limits (evidence: `src/FCS/FcsController.cs`)
- Surface Effector → Airfoil Table: evaluates aerodynamics (evidence: `src/FCS/SurfaceEffector.cs`)
- Mod Plugin → Countermeasures: configures (evidence: `src/FCS/Plugin.cs`)
- Mod Plugin → Drag Relief: attaches relief (evidence: `src/FCS/DragRelief.cs`)
- Drag Relief → Airfoil Table: reads lift and drag (evidence: `src/FCS/DragRelief.cs`)
- Aircraft Registry → Game Accessors: uses accessors (evidence: `src/FCS/Registry.cs`)
- Dev Unlock → Mod Plugin: extends configuration
