# aon-robotics/override architecture

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

- Interactive diagram: https://gitdiagram.com/aon-robotics/override
- Repository: https://github.com/aon-robotics/override

## Overview

This is a VEX/PROS robot-control application with AON abstractions for competition routines, driver control, drivetrain motion, odometry, and robot mechanisms, plus a touchscreen/debug interface. Its principal workflow is competition callbacks into autonomous or operator behavior, which uses shared robot configuration to command mechanisms and drive while tracking pose. The source index supports several module dependencies, but the README is empty and many connections—especially callback implementations and UI wiring—were not shown, so those links are omitted rather than inferred.

Main entry points: [`include/aon/drivetrain/drivetrain.hpp`](https://github.com/aon-robotics/override/blob/main/include/aon/drivetrain/drivetrain.hpp) (Drivetrain motion), [`include/aon/globals.hpp`](https://github.com/aon-robotics/override/blob/main/include/aon/globals.hpp) (Robot configuration), [`src/aon/odometry/odometry.cpp`](https://github.com/aon-robotics/override/blob/main/src/aon/odometry/odometry.cpp) (Pose tracking), [`include/aon/tools/gui/gui-debug.hpp`](https://github.com/aon-robotics/override/blob/main/include/aon/tools/gui/gui-debug.hpp) (Debug interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Competition entry"]
  node_competition["Competition callbacks<br/>[main.hpp]"]
  node_routines["Autonomous routines"]
  node_operator["Operator control"]
  node_feedback["Driver feedback"]
  node_globals["Robot configuration<br/>[globals.hpp]"]
end

subgraph group_motion["Motion and sensing"]
  node_drivetrain["Drivetrain motion<br/>[drivetrain.hpp]"]
  node_drivevariants["Drive variants<br/>[x-drive.hpp]"]
  node_odometry["Pose tracking<br/>[odometry.cpp]"]
  node_pose["Pose model<br/>[pose.hpp]"]
  node_vector["Vector math<br/>[vector.hpp]"]
  node_pid["PID control<br/>[pid.hpp]"]
  node_profiles["Motion profiles"]
  node_pursuit["Pure pursuit<br/>[pure-pursuit.hpp]"]
end

subgraph group_mechanisms["Robot mechanisms"]
  node_intake["Intake and sorting<br/>[intake.cpp]"]
  node_piston["Piston actuation<br/>[piston.hpp]"]
  node_orbit["Orbit mechanism<br/>[orbit.cpp]"]
end

subgraph group_interface["Driver and debug UI"]
  node_gui["GUI framework<br/>[gui.hpp]"]
  node_debuggui["Debug interface<br/>[gui-debug.hpp]"]
  node_fieldmapper["Field mapper<br/>[fieldmapper.cpp]"]
  node_autonrunner["Auton runner<br/>[autonrunner.cpp]"]
end

subgraph group_platform["Robot platform"]
  node_pros["PROS device API<br/>[api.h]"]
end

node_competitionactor(("Competition system"))
node_driveractor(("Robot operator"))

node_competitionactor -->|"invokes callbacks"| node_competition
node_competition -->|"includes platform API"| node_pros
node_globals -->|"configures"| node_drivetrain
node_globals -->|"configures"| node_intake
node_globals -->|"configures"| node_orbit
node_drivetrain -->|"reads and resets pose"| node_odometry
node_drivetrain -->|"uses controller"| node_pid
node_drivetrain -->|"uses profiles"| node_profiles
node_drivetrain -->|"uses path following"| node_pursuit
node_drivetrain -->|"specialized by"| node_drivevariants
node_odometry -->|"estimates"| node_pose
node_odometry -->|"uses geometry"| node_vector
node_routines -->|"reads pose"| node_odometry
node_routines -->|"uses controller"| node_pid
node_routines -->|"uses profiles"| node_profiles
node_driveractor -.->|"provides input"| node_operator
node_operator -.->|"uses robot configuration"| node_globals
node_intake -->|"actuates"| node_piston
node_fieldmapper -->|"uses debug interface"| node_debuggui
node_debuggui -->|"uses GUI"| node_gui
node_debuggui -->|"displays pose"| node_pose
node_autonrunner -.->|"uses debug interface"| node_debuggui

click node_competition "https://github.com/aon-robotics/override/blob/main/include/main.hpp"
click node_routines "https://github.com/aon-robotics/override/blob/main/include/aon/competition/autonomous-routines.hpp"
click node_operator "https://github.com/aon-robotics/override/blob/main/include/aon/competition/operator-control.hpp"
click node_feedback "https://github.com/aon-robotics/override/blob/main/include/aon/competition/driver-feedback.hpp"
click node_globals "https://github.com/aon-robotics/override/blob/main/include/aon/globals.hpp"
click node_drivetrain "https://github.com/aon-robotics/override/blob/main/include/aon/drivetrain/drivetrain.hpp"
click node_drivevariants "https://github.com/aon-robotics/override/blob/main/include/aon/drivetrain/x-drive.hpp"
click node_odometry "https://github.com/aon-robotics/override/blob/main/src/aon/odometry/odometry.cpp"
click node_pose "https://github.com/aon-robotics/override/blob/main/include/aon/math/pose.hpp"
click node_vector "https://github.com/aon-robotics/override/blob/main/include/aon/tools/vector.hpp"
click node_pid "https://github.com/aon-robotics/override/blob/main/include/aon/controls/pid/pid.hpp"
click node_profiles "https://github.com/aon-robotics/override/blob/main/include/aon/controls/s-curve-profile.hpp"
click node_pursuit "https://github.com/aon-robotics/override/blob/main/include/aon/controls/pure-pursuit.hpp"
click node_intake "https://github.com/aon-robotics/override/blob/main/src/aon/intake.cpp"
click node_piston "https://github.com/aon-robotics/override/blob/main/include/aon/piston/piston.hpp"
click node_orbit "https://github.com/aon-robotics/override/blob/main/src/aon/orbit.cpp"
click node_gui "https://github.com/aon-robotics/override/blob/main/include/aon/tools/gui/gui.hpp"
click node_debuggui "https://github.com/aon-robotics/override/blob/main/include/aon/tools/gui/gui-debug.hpp"
click node_fieldmapper "https://github.com/aon-robotics/override/blob/main/src/aon/tools/gui/debug-tools/fieldmapper.cpp"
click node_autonrunner "https://github.com/aon-robotics/override/blob/main/src/aon/tools/gui/debug-tools/autonrunner.cpp"
click node_pros "https://github.com/aon-robotics/override/blob/main/include/api.h"

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_competition,node_routines,node_operator,node_feedback,node_globals toneBlue
class node_drivetrain,node_drivevariants,node_odometry,node_pose,node_vector,node_pid,node_profiles,node_pursuit toneAmber
class node_intake,node_piston,node_orbit toneMint
class node_gui,node_debuggui,node_fieldmapper,node_autonrunner toneRose
class node_pros,node_competitionactor,node_driveractor toneIndigo
```

## Components

### Competition entry

- [Competition callbacks](https://github.com/aon-robotics/override/blob/main/include/main.hpp): `include/main.hpp`
- [Autonomous routines](https://github.com/aon-robotics/override/blob/main/include/aon/competition/autonomous-routines.hpp): `include/aon/competition/autonomous-routines.hpp`
- [Operator control](https://github.com/aon-robotics/override/blob/main/include/aon/competition/operator-control.hpp): `include/aon/competition/operator-control.hpp`
- [Driver feedback](https://github.com/aon-robotics/override/blob/main/include/aon/competition/driver-feedback.hpp): `include/aon/competition/driver-feedback.hpp`
- [Robot configuration](https://github.com/aon-robotics/override/blob/main/include/aon/globals.hpp): `include/aon/globals.hpp`

### Motion and sensing

- [Drivetrain motion](https://github.com/aon-robotics/override/blob/main/include/aon/drivetrain/drivetrain.hpp): `include/aon/drivetrain/drivetrain.hpp`
- [Drive variants](https://github.com/aon-robotics/override/blob/main/include/aon/drivetrain/x-drive.hpp): `include/aon/drivetrain/x-drive.hpp`
- [Pose tracking](https://github.com/aon-robotics/override/blob/main/src/aon/odometry/odometry.cpp): `src/aon/odometry/odometry.cpp`
- [Pose model](https://github.com/aon-robotics/override/blob/main/include/aon/math/pose.hpp): `include/aon/math/pose.hpp`
- [Vector math](https://github.com/aon-robotics/override/blob/main/include/aon/tools/vector.hpp): `include/aon/tools/vector.hpp`
- [PID control](https://github.com/aon-robotics/override/blob/main/include/aon/controls/pid/pid.hpp): `include/aon/controls/pid/pid.hpp`
- [Motion profiles](https://github.com/aon-robotics/override/blob/main/include/aon/controls/s-curve-profile.hpp): `include/aon/controls/s-curve-profile.hpp`
- [Pure pursuit](https://github.com/aon-robotics/override/blob/main/include/aon/controls/pure-pursuit.hpp): `include/aon/controls/pure-pursuit.hpp`

### Robot mechanisms

- [Intake and sorting](https://github.com/aon-robotics/override/blob/main/src/aon/intake.cpp): `src/aon/intake.cpp`
- [Piston actuation](https://github.com/aon-robotics/override/blob/main/include/aon/piston/piston.hpp): `include/aon/piston/piston.hpp`
- [Orbit mechanism](https://github.com/aon-robotics/override/blob/main/src/aon/orbit.cpp): `src/aon/orbit.cpp`

### Driver and debug UI

- [GUI framework](https://github.com/aon-robotics/override/blob/main/include/aon/tools/gui/gui.hpp): `include/aon/tools/gui/gui.hpp`
- [Debug interface](https://github.com/aon-robotics/override/blob/main/include/aon/tools/gui/gui-debug.hpp): `include/aon/tools/gui/gui-debug.hpp`
- [Field mapper](https://github.com/aon-robotics/override/blob/main/src/aon/tools/gui/debug-tools/fieldmapper.cpp): `src/aon/tools/gui/debug-tools/fieldmapper.cpp`
- [Auton runner](https://github.com/aon-robotics/override/blob/main/src/aon/tools/gui/debug-tools/autonrunner.cpp): `src/aon/tools/gui/debug-tools/autonrunner.cpp`

### Robot platform

- [PROS device API](https://github.com/aon-robotics/override/blob/main/include/api.h): `include/api.h`

### Other components

- **Competition system**
- **Robot operator**

## Connections

- Competition system → Competition callbacks: invokes callbacks (evidence: `include/main.hpp`)
- Competition callbacks → PROS device API: includes platform API (evidence: `include/main.hpp`)
- Robot configuration → Drivetrain motion: configures (evidence: `include/aon/globals.hpp`)
- Robot configuration → Intake and sorting: configures (evidence: `include/aon/globals.hpp`)
- Robot configuration → Orbit mechanism: configures (evidence: `include/aon/globals.hpp`)
- Drivetrain motion → Pose tracking: reads and resets pose (evidence: `include/aon/drivetrain/drivetrain.hpp`)
- Drivetrain motion → PID control: uses controller (evidence: `include/aon/drivetrain/drivetrain.hpp`)
- Drivetrain motion → Motion profiles: uses profiles (evidence: `include/aon/drivetrain/drivetrain.hpp`)
- Drivetrain motion → Pure pursuit: uses path following (evidence: `include/aon/drivetrain/drivetrain.hpp`)
- Drivetrain motion → Drive variants: specialized by (evidence: `include/aon/drivetrain/x-drive.hpp`)
- Pose tracking → Pose model: estimates
- Pose tracking → Vector math: uses geometry
- Autonomous routines → Pose tracking: reads pose (evidence: `include/aon/competition/autonomous-routines.hpp`)
- Autonomous routines → PID control: uses controller (evidence: `include/aon/competition/autonomous-routines.hpp`)
- Autonomous routines → Motion profiles: uses profiles (evidence: `include/aon/competition/autonomous-routines.hpp`)
- Robot operator → Operator control: provides input
- Operator control → Robot configuration: uses robot configuration
- Intake and sorting → Piston actuation: actuates
- Field mapper → Debug interface: uses debug interface (evidence: `src/aon/tools/gui/debug-tools/fieldmapper.cpp`)
- Debug interface → GUI framework: uses GUI (evidence: `include/aon/tools/gui/gui-debug.hpp`)
- Debug interface → Pose model: displays pose (evidence: `include/aon/tools/gui/gui-debug.hpp`)
- Auton runner → Debug interface: uses debug interface
