# robo-montagnards-7471/csh-7471-2026 architecture

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

- Interactive diagram: https://gitdiagram.com/robo-montagnards-7471/csh-7471-2026
- Repository: https://github.com/robo-montagnards-7471/csh-7471-2026

## Overview

This is an FRC robot-control application. Its runtime starts the WPILib robot lifecycle, reads driver input, and dispatches teleoperated control to mechanisms; the command-based container separately configures swerve driving and autonomous support. The main stages are lifecycle, operator input, drive control, and mechanism actuation, with vision and autonomous commands as driving capabilities. The README identifies the robot project but documents no further behavior; several peripheral component implementations and wiring details are therefore not inferred.

Main entry points: [`Robot/src/main/java/frc/robot/RobotContainer.java`](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/RobotContainer.java) (Command Container), [`Robot/src/main/java/frc/robot/Robot.java`](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/Robot.java) (Robot Lifecycle), [`Robot/src/main/java/frc/robot/subsystems/swervedrive/SwerveSubsystem.java`](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/subsystems/swervedrive/SwerveSubsystem.java) (Swerve Subsystem), [`Robot/src/main/java/frc/robot/components/Controller.java`](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/Controller.java) (Controller Input)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Robot Runtime"]
  node_main["WPILib Entry<br/>[Main.java]"]
  node_robot["Robot Lifecycle<br/>[Robot.java]"]
  node_container["Command Container"]
  node_config["Hardware Config<br/>[Config.java]"]
  node_constants["Drive Constants<br/>[Constants.java]"]
end

subgraph group_operator["Operator Input"]
  node_controller["Controller Input<br/>[Controller.java]"]
  node_stick["Stick Position<br/>[StickPosition.java]"]
  node_pilot["Pilot Modifier<br/>[PilotModifier.java]"]
end

subgraph group_driving["Swerve Driving"]
  node_swerve["Swerve Subsystem"]
  node_absolute["Absolute Drive<br/>[AbsoluteDrive.java]"]
  node_absoluteadv["Advanced Drive"]
  node_fielddrive["Field Drive"]
  node_balance["Auto Balance"]
  node_vision["Vision Estimation<br/>[Vision.java]"]
  node_swervecfg["Swerve Deploy Config<br/>[swervedrive.json]"]
end

subgraph group_mechanisms["Robot Mechanisms"]
  node_intake["Intake<br/>[Intake.java]"]
  node_shooter["Shooter<br/>[Shooter.java]"]
  node_hub["Hub Distance<br/>[HubDistance.java]"]
  node_climber["Climber<br/>[Climber.java]"]
end

node_driver(("Driver"))

node_main -->|"starts"| node_robot
node_robot -->|"initializes"| node_container
node_driver -->|"operates"| node_controller
node_robot -->|"polls"| node_controller
node_controller -->|"creates"| node_stick
node_container -->|"creates"| node_controller
node_container -->|"creates"| node_pilot
node_container -->|"creates"| node_swerve
node_robot -->|"polls"| node_intake
node_robot -->|"polls"| node_shooter
node_robot -->|"creates"| node_hub
node_robot -->|"reads settings"| node_config
node_intake -->|"reads settings"| node_config
node_shooter -->|"reads settings"| node_config
node_container -->|"loads configuration"| node_swervecfg
node_container -.->|"configures drive"| node_absolute
node_container -.->|"configures drive"| node_absoluteadv
node_container -.->|"configures drive"| node_fielddrive
node_container -.->|"configures autonomous"| node_balance
node_absolute -->|"drives"| node_swerve
node_absoluteadv -->|"drives"| node_swerve
node_fielddrive -->|"drives"| node_swerve
node_balance -->|"controls"| node_swerve
node_swerve -->|"uses estimation"| node_vision
node_swerve -->|"uses limits"| node_constants

click node_main "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/Main.java"
click node_robot "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/Robot.java"
click node_container "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/RobotContainer.java"
click node_config "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/Config.java"
click node_constants "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/Constants.java"
click node_controller "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/Controller.java"
click node_stick "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/data/StickPosition.java"
click node_pilot "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/PilotModifier.java"
click node_swerve "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/subsystems/swervedrive/SwerveSubsystem.java"
click node_absolute "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteDrive.java"
click node_absoluteadv "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteDriveAdv.java"
click node_fielddrive "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteFieldDrive.java"
click node_balance "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/commands/swervedrive/auto/AutoBalanceCommand.java"
click node_vision "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/subsystems/swervedrive/Vision.java"
click node_swervecfg "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/deploy/swerve/neo/swervedrive.json"
click node_intake "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/Intake.java"
click node_shooter "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/Shooter.java"
click node_hub "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/HubDistance.java"
click node_climber "https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/Climber.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_main,node_robot,node_container,node_config,node_constants toneBlue
class node_controller,node_stick,node_pilot toneAmber
class node_swerve,node_absolute,node_absoluteadv,node_fielddrive,node_balance,node_vision,node_swervecfg toneMint
class node_intake,node_shooter,node_hub,node_climber toneRose
class node_driver toneIndigo
```

## Components

### Robot Runtime

- [WPILib Entry](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/Main.java): `Robot/src/main/java/frc/robot/Main.java`
- [Robot Lifecycle](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/Robot.java): `Robot/src/main/java/frc/robot/Robot.java`
- [Command Container](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/RobotContainer.java): `Robot/src/main/java/frc/robot/RobotContainer.java`
- [Hardware Config](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/Config.java): `Robot/src/main/java/frc/robot/Config.java`
- [Drive Constants](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/Constants.java): `Robot/src/main/java/frc/robot/Constants.java`

### Operator Input

- [Controller Input](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/Controller.java): `Robot/src/main/java/frc/robot/components/Controller.java`
- [Stick Position](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/data/StickPosition.java): `Robot/src/main/java/frc/robot/data/StickPosition.java`
- [Pilot Modifier](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/PilotModifier.java): `Robot/src/main/java/frc/robot/components/PilotModifier.java`

### Swerve Driving

- [Swerve Subsystem](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/subsystems/swervedrive/SwerveSubsystem.java): `Robot/src/main/java/frc/robot/subsystems/swervedrive/SwerveSubsystem.java`
- [Absolute Drive](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteDrive.java): `Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteDrive.java`
- [Advanced Drive](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteDriveAdv.java): `Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteDriveAdv.java`
- [Field Drive](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteFieldDrive.java): `Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteFieldDrive.java`
- [Auto Balance](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/commands/swervedrive/auto/AutoBalanceCommand.java): `Robot/src/main/java/frc/robot/commands/swervedrive/auto/AutoBalanceCommand.java`
- [Vision Estimation](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/subsystems/swervedrive/Vision.java): `Robot/src/main/java/frc/robot/subsystems/swervedrive/Vision.java`
- [Swerve Deploy Config](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/deploy/swerve/neo/swervedrive.json): `Robot/src/main/deploy/swerve/neo/swervedrive.json`

### Robot Mechanisms

- [Intake](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/Intake.java): `Robot/src/main/java/frc/robot/components/Intake.java`
- [Shooter](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/Shooter.java): `Robot/src/main/java/frc/robot/components/Shooter.java`
- [Hub Distance](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/HubDistance.java): `Robot/src/main/java/frc/robot/components/HubDistance.java`
- [Climber](https://github.com/robo-montagnards-7471/csh-7471-2026/blob/main/Robot/src/main/java/frc/robot/components/Climber.java): `Robot/src/main/java/frc/robot/components/Climber.java`

### Other components

- **Driver**

## Connections

- WPILib Entry → Robot Lifecycle: starts (evidence: `Robot/src/main/java/frc/robot/Main.java`)
- Robot Lifecycle → Command Container: initializes (evidence: `Robot/src/main/java/frc/robot/Robot.java`)
- Driver → Controller Input: operates (evidence: `Robot/src/main/java/frc/robot/components/Controller.java`)
- Robot Lifecycle → Controller Input: polls (evidence: `Robot/src/main/java/frc/robot/Robot.java`)
- Controller Input → Stick Position: creates (evidence: `Robot/src/main/java/frc/robot/components/Controller.java`)
- Command Container → Controller Input: creates (evidence: `Robot/src/main/java/frc/robot/RobotContainer.java`)
- Command Container → Pilot Modifier: creates (evidence: `Robot/src/main/java/frc/robot/RobotContainer.java`)
- Command Container → Swerve Subsystem: creates (evidence: `Robot/src/main/java/frc/robot/RobotContainer.java`)
- Robot Lifecycle → Intake: polls (evidence: `Robot/src/main/java/frc/robot/Robot.java`)
- Robot Lifecycle → Shooter: polls (evidence: `Robot/src/main/java/frc/robot/Robot.java`)
- Robot Lifecycle → Hub Distance: creates (evidence: `Robot/src/main/java/frc/robot/Robot.java`)
- Robot Lifecycle → Hardware Config: reads settings (evidence: `Robot/src/main/java/frc/robot/Robot.java`)
- Intake → Hardware Config: reads settings (evidence: `Robot/src/main/java/frc/robot/components/Intake.java`)
- Shooter → Hardware Config: reads settings (evidence: `Robot/src/main/java/frc/robot/components/Shooter.java`)
- Command Container → Swerve Deploy Config: loads configuration (evidence: `Robot/src/main/java/frc/robot/RobotContainer.java`)
- Command Container → Absolute Drive: configures drive
- Command Container → Advanced Drive: configures drive
- Command Container → Field Drive: configures drive
- Command Container → Auto Balance: configures autonomous
- Absolute Drive → Swerve Subsystem: drives (evidence: `Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteDrive.java`)
- Advanced Drive → Swerve Subsystem: drives (evidence: `Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteDriveAdv.java`)
- Field Drive → Swerve Subsystem: drives (evidence: `Robot/src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteFieldDrive.java`)
- Auto Balance → Swerve Subsystem: controls (evidence: `Robot/src/main/java/frc/robot/commands/swervedrive/auto/AutoBalanceCommand.java`)
- Swerve Subsystem → Vision Estimation: uses estimation (evidence: `Robot/src/main/java/frc/robot/subsystems/swervedrive/SwerveSubsystem.java`)
- Swerve Subsystem → Drive Constants: uses limits (evidence: `Robot/src/main/java/frc/robot/subsystems/swervedrive/SwerveSubsystem.java`)
