# frc6995/offseasonbot-2026-public architecture

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

- Interactive diagram: https://gitdiagram.com/frc6995/offseasonbot-2026-public
- Repository: https://github.com/frc6995/offseasonbot-2026-public

## Overview

This is a FRC robot-control application. Its principal workflow is operator/autonomous commands into the robot container and superstructure, which coordinate drivetrain and game-piece mechanisms; subsystem IO adapters then command hardware or simulation. AprilTag vision estimates feed robot localization, while visualization and telemetry expose robot state. The README provides no capability details, and RobotContainer plus several subsystem implementations were not excerpted, so those connections are left unverified where needed.

Main entry points: [`src/main/java/frc/robot/subsystems/Superstructure.java`](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/Superstructure.java) (Superstructure), [`src/main/java/frc/robot/autos/Autos.java`](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/autos/Autos.java) (Autonomous Routines), [`src/main/java/frc/robot/RobotContainer.java`](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/RobotContainer.java) (Command Container), [`src/main/java/frc/robot/subsystems/turret/Turret.java`](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/turret/Turret.java) (Turret)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Robot Runtime"]
  node_robot["Robot Lifecycle<br/>[Robot.java]"]
  node_container["Command Container"]
end

subgraph group_coordination["Control Coordination"]
  node_autos["Autonomous Routines<br/>[Autos.java]"]
  node_superstructure["Superstructure"]
end

subgraph group_mechanisms["Robot Mechanisms"]
  node_drive["Swerve Drive"]
  node_intake["Intake<br/>[Intake.java]"]
  node_intakeio["Intake Hardware IO"]
  node_turret["Turret<br/>[Turret.java]"]
  node_turretio["Turret Hardware IO"]
  node_hood["Hood<br/>[Hood.java]"]
  node_hoodio["Hood Hardware IO<br/>[HoodIOTalonFX.java]"]
  node_flywheel["Flywheel<br/>[Flywheel.java]"]
  node_flywheelio["Flywheel Hardware IO"]
  node_dyerotor["Dye Rotor<br/>[DyeRotor.java]"]
  node_dyerotorio["Dye Rotor Hardware IO"]
end

subgraph group_perception["Vision and Localization"]
  node_vision["Vision Coordinator<br/>[ATVision.java]"]
  node_apriltag["AprilTag Vision"]
  node_limelight["Limelight Adapter"]
  node_photon["PhotonVision Adapter"]
end

subgraph group_support["Simulation and Utilities"]
  node_visualizer["Robot Visualizer"]
  node_ctre["CTRE Utilities<br/>[CtreUtil.java]"]
  node_shot["Shot Projection"]
end

node_operator(("Operator"))

node_operator -.->|"supplies commands"| node_container
node_robot -->|"initializes"| node_container
node_container -.->|"configures"| node_superstructure
node_container -.->|"configures"| node_autos
node_superstructure -->|"constructs and commands"| node_intake
node_superstructure -->|"constructs and commands"| node_turret
node_superstructure -->|"constructs and commands"| node_hood
node_superstructure -->|"constructs and commands"| node_flywheel
node_superstructure -->|"constructs"| node_dyerotor
node_superstructure -.->|"solves shots"| node_shot
node_autos -->|"uses"| node_drive
node_autos -->|"uses"| node_superstructure
node_autos -->|"uses"| node_turret
node_intake -->|"commands hardware"| node_intakeio
node_turret -->|"uses adapter"| node_turretio
node_hood -->|"uses adapter"| node_hoodio
node_flywheel -->|"uses adapter"| node_flywheelio
node_dyerotor -->|"uses adapter"| node_dyerotorio
node_vision -->|"uses estimates"| node_apriltag
node_vision -->|"updates camera"| node_limelight
node_vision -->|"uses estimates"| node_photon
node_apriltag -->|"reads poses"| node_limelight
node_robot -.->|"updates"| node_visualizer
node_intake -->|"updates model"| node_visualizer
node_turret -.->|"updates model"| node_visualizer
node_intakeio -->|"uses utilities"| node_ctre
node_flywheelio -->|"uses utilities"| node_ctre
node_dyerotorio -->|"uses utilities"| node_ctre

click node_robot "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/Robot.java"
click node_container "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/RobotContainer.java"
click node_autos "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/autos/Autos.java"
click node_superstructure "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/Superstructure.java"
click node_drive "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/CommandSwerveDrivetrain.java"
click node_intake "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/intake/Intake.java"
click node_intakeio "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/intake/IntakeIOTalonFX.java"
click node_turret "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/turret/Turret.java"
click node_turretio "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/turret/TurretIOTalonFX.java"
click node_hood "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/hood/Hood.java"
click node_hoodio "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/hood/HoodIOTalonFX.java"
click node_flywheel "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/flywheel/Flywheel.java"
click node_flywheelio "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/flywheel/FlywheelIOTalonFX.java"
click node_dyerotor "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/dyerotor/DyeRotor.java"
click node_dyerotorio "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/dyerotor/DyeRotorIOTalonFX.java"
click node_vision "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/vision/ATVision.java"
click node_apriltag "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/vision/apriltag/AprilTagModule.java"
click node_limelight "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/vision/apriltag/RealATLimelightVision.java"
click node_photon "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/vision/photon/RealPhotonATVision.java"
click node_visualizer "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/RobotVisualizer.java"
click node_ctre "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/util/CtreUtil.java"
click node_shot "https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/util/ShotProjection.java"

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_robot,node_container toneBlue
class node_autos,node_superstructure toneAmber
class node_drive,node_intake,node_intakeio,node_turret,node_turretio,node_hood,node_hoodio,node_flywheel,node_flywheelio,node_dyerotor,node_dyerotorio toneMint
class node_vision,node_apriltag,node_limelight,node_photon toneRose
class node_visualizer,node_ctre,node_shot,node_operator toneIndigo
```

## Components

### Robot Runtime

- [Robot Lifecycle](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/Robot.java): `src/main/java/frc/robot/Robot.java`
- [Command Container](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/RobotContainer.java): `src/main/java/frc/robot/RobotContainer.java`

### Control Coordination

- [Autonomous Routines](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/autos/Autos.java): `src/main/java/frc/robot/autos/Autos.java`
- [Superstructure](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/Superstructure.java): `src/main/java/frc/robot/subsystems/Superstructure.java`

### Robot Mechanisms

- [Swerve Drive](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/CommandSwerveDrivetrain.java): `src/main/java/frc/robot/subsystems/CommandSwerveDrivetrain.java`
- [Intake](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/intake/Intake.java): `src/main/java/frc/robot/subsystems/intake/Intake.java`
- [Intake Hardware IO](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/intake/IntakeIOTalonFX.java): `src/main/java/frc/robot/subsystems/intake/IntakeIOTalonFX.java`
- [Turret](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/turret/Turret.java): `src/main/java/frc/robot/subsystems/turret/Turret.java`
- [Turret Hardware IO](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/turret/TurretIOTalonFX.java): `src/main/java/frc/robot/subsystems/turret/TurretIOTalonFX.java`
- [Hood](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/hood/Hood.java): `src/main/java/frc/robot/subsystems/hood/Hood.java`
- [Hood Hardware IO](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/hood/HoodIOTalonFX.java): `src/main/java/frc/robot/subsystems/hood/HoodIOTalonFX.java`
- [Flywheel](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/flywheel/Flywheel.java): `src/main/java/frc/robot/subsystems/flywheel/Flywheel.java`
- [Flywheel Hardware IO](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/flywheel/FlywheelIOTalonFX.java): `src/main/java/frc/robot/subsystems/flywheel/FlywheelIOTalonFX.java`
- [Dye Rotor](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/dyerotor/DyeRotor.java): `src/main/java/frc/robot/subsystems/dyerotor/DyeRotor.java`
- [Dye Rotor Hardware IO](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/dyerotor/DyeRotorIOTalonFX.java): `src/main/java/frc/robot/subsystems/dyerotor/DyeRotorIOTalonFX.java`

### Vision and Localization

- [Vision Coordinator](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/vision/ATVision.java): `src/main/java/frc/robot/subsystems/vision/ATVision.java`
- [AprilTag Vision](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/vision/apriltag/AprilTagModule.java): `src/main/java/frc/robot/subsystems/vision/apriltag/AprilTagModule.java`
- [Limelight Adapter](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/vision/apriltag/RealATLimelightVision.java): `src/main/java/frc/robot/subsystems/vision/apriltag/RealATLimelightVision.java`
- [PhotonVision Adapter](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/subsystems/vision/photon/RealPhotonATVision.java): `src/main/java/frc/robot/subsystems/vision/photon/RealPhotonATVision.java`

### Simulation and Utilities

- [Robot Visualizer](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/RobotVisualizer.java): `src/main/java/frc/robot/RobotVisualizer.java`
- [CTRE Utilities](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/util/CtreUtil.java): `src/main/java/frc/robot/util/CtreUtil.java`
- [Shot Projection](https://github.com/frc6995/offseasonbot-2026-public/blob/main/src/main/java/frc/robot/util/ShotProjection.java): `src/main/java/frc/robot/util/ShotProjection.java`

### Other components

- **Operator**

## Connections

- Operator → Command Container: supplies commands
- Robot Lifecycle → Command Container: initializes (evidence: `src/main/java/frc/robot/Robot.java`)
- Command Container → Superstructure: configures
- Command Container → Autonomous Routines: configures
- Superstructure → Intake: constructs and commands (evidence: `src/main/java/frc/robot/subsystems/Superstructure.java`)
- Superstructure → Turret: constructs and commands (evidence: `src/main/java/frc/robot/subsystems/Superstructure.java`)
- Superstructure → Hood: constructs and commands (evidence: `src/main/java/frc/robot/subsystems/Superstructure.java`)
- Superstructure → Flywheel: constructs and commands (evidence: `src/main/java/frc/robot/subsystems/Superstructure.java`)
- Superstructure → Dye Rotor: constructs (evidence: `src/main/java/frc/robot/subsystems/Superstructure.java`)
- Superstructure → Shot Projection: solves shots (evidence: `src/main/java/frc/robot/subsystems/Superstructure.java`)
- Autonomous Routines → Swerve Drive: uses (evidence: `src/main/java/frc/robot/autos/Autos.java`)
- Autonomous Routines → Superstructure: uses (evidence: `src/main/java/frc/robot/autos/Autos.java`)
- Autonomous Routines → Turret: uses (evidence: `src/main/java/frc/robot/autos/Autos.java`)
- Intake → Intake Hardware IO: commands hardware (evidence: `src/main/java/frc/robot/subsystems/intake/Intake.java`)
- Turret → Turret Hardware IO: uses adapter (evidence: `src/main/java/frc/robot/subsystems/turret/Turret.java`)
- Hood → Hood Hardware IO: uses adapter (evidence: `src/main/java/frc/robot/subsystems/hood/Hood.java`)
- Flywheel → Flywheel Hardware IO: uses adapter (evidence: `src/main/java/frc/robot/subsystems/flywheel/Flywheel.java`)
- Dye Rotor → Dye Rotor Hardware IO: uses adapter (evidence: `src/main/java/frc/robot/subsystems/dyerotor/DyeRotor.java`)
- Vision Coordinator → AprilTag Vision: uses estimates (evidence: `src/main/java/frc/robot/subsystems/vision/ATVision.java`)
- Vision Coordinator → Limelight Adapter: updates camera (evidence: `src/main/java/frc/robot/subsystems/vision/ATVision.java`)
- Vision Coordinator → PhotonVision Adapter: uses estimates (evidence: `src/main/java/frc/robot/subsystems/vision/ATVision.java`)
- AprilTag Vision → Limelight Adapter: reads poses (evidence: `src/main/java/frc/robot/subsystems/vision/apriltag/AprilTagModule.java`)
- Robot Lifecycle → Robot Visualizer: updates (evidence: `src/main/java/frc/robot/Robot.java`)
- Intake → Robot Visualizer: updates model (evidence: `src/main/java/frc/robot/subsystems/intake/Intake.java`)
- Turret → Robot Visualizer: updates model (evidence: `src/main/java/frc/robot/subsystems/turret/Turret.java`)
- Intake Hardware IO → CTRE Utilities: uses utilities (evidence: `src/main/java/frc/robot/subsystems/intake/IntakeIOTalonFX.java`)
- Flywheel Hardware IO → CTRE Utilities: uses utilities (evidence: `src/main/java/frc/robot/subsystems/flywheel/FlywheelIOTalonFX.java`)
- Dye Rotor Hardware IO → CTRE Utilities: uses utilities (evidence: `src/main/java/frc/robot/subsystems/dyerotor/DyeRotorIOTalonFX.java`)
