# team-4361/robotcode-2026 architecture

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

- Interactive diagram: https://gitdiagram.com/team-4361/robotcode-2026
- Repository: https://github.com/team-4361/robotcode-2026

## Overview

This is an FRC robot application: operator input and robot-mode scheduling drive swerve, game-piece mechanisms, shooting, climbing, and autonomous routines. RobotContainer assembles subsystem instances, binds controls, and exposes the autonomous chooser; teleopController translates joystick axes into drive commands. The graph preserves the major visible capabilities and deployed PathPlanner routine configuration. Several source files are only indexed, not excerpted, so uncertain subsystem wiring is omitted rather than inferred.

Main entry points: [`src/main/java/frc/robot/RobotContainer.java`](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/RobotContainer.java) (Robot Container), [`src/main/java/frc/robot/subsystems/swerveDrive/SwerveSubsystem.java`](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/swerveDrive/SwerveSubsystem.java) (Swerve Drive), [`src/main/java/frc/robot/subsystems/ShooterSubsystem.java`](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/ShooterSubsystem.java) (Shooter), [`src/main/java/frc/robot/Robot.java`](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/Robot.java) (Robot Lifecycle)

## Diagram (Mermaid)

```mermaid
flowchart TD

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

subgraph group_drive["Drive and Vision"]
  node_swerve["Swerve Drive"]
  node_vision["Vision Estimation<br/>[Vision.java]"]
  node_drivecommands["Drive Commands"]
  node_autobalance["Auto Balance"]
end

subgraph group_mechanisms["Robot Mechanisms"]
  node_intake["Intake"]
  node_hopper["Hopper"]
  node_feeder["Feeder"]
  node_shooter["Shooter"]
  node_calculator["Shot Calculator"]
  node_turret["Turret"]
  node_turretcommand["Turret Command<br/>[TurretCommand.java]"]
  node_climber["Climber"]
  node_climbercommands["Climber Commands"]
end

subgraph group_auto["Autonomous Routines"]
  node_pathautos["PathPlanner Autos"]
  node_pathpaths["PathPlanner Paths"]
end

node_operator(("Operator"))

node_operator -->|"provides input"| node_teleop
node_teleop -->|"commands drive"| node_swerve
node_robot -->|"creates"| node_container
node_robot -->|"runs vision update"| node_container
node_container -->|"creates drivebase"| node_swerve
node_container -->|"creates subsystem"| node_intake
node_container -->|"creates subsystem"| node_hopper
node_container -->|"creates subsystem"| node_feeder
node_container -->|"creates subsystem"| node_shooter
node_container -->|"creates subsystem"| node_turret
node_container -->|"builds chooser"| node_pathautos
node_shooter -->|"calculates RPM"| node_calculator
node_shooter -->|"reads pose"| node_swerve
node_vision -->|"adds pose estimate"| node_swerve
node_drivecommands -->|"commands drive"| node_swerve
node_autobalance -->|"commands balance"| node_swerve
node_climbercommands -->|"commands mechanism"| node_climber
node_pathautos -.->|"references paths"| node_pathpaths

click node_robot "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/Robot.java"
click node_container "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/RobotContainer.java"
click node_teleop "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/logics/teleopController.java"
click node_swerve "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/swerveDrive/SwerveSubsystem.java"
click node_vision "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/logics/Vision.java"
click node_drivecommands "https://github.com/team-4361/robotcode-2026/tree/main/src/main/java/frc/robot/commands/swervedrive/drivebase"
click node_autobalance "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/commands/swervedrive/auto/AutoBalanceCommand.java"
click node_intake "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/IntakeSubsystem.java"
click node_hopper "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/HopperSubsystem.java"
click node_feeder "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/FeederSubsystem.java"
click node_shooter "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/ShooterSubsystem.java"
click node_calculator "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/util/ShooterCalculator.java"
click node_turret "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/TurretSubsystem.java"
click node_turretcommand "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/commands/Turret/TurretCommand.java"
click node_climber "https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/ClimberSubsystem.java"
click node_climbercommands "https://github.com/team-4361/robotcode-2026/tree/main/src/main/java/frc/robot/commands/Climber"
click node_pathautos "https://github.com/team-4361/robotcode-2026/tree/main/src/main/deploy/pathplanner/autos"
click node_pathpaths "https://github.com/team-4361/robotcode-2026/tree/main/src/main/deploy/pathplanner/paths"

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,node_teleop toneBlue
class node_swerve,node_vision,node_drivecommands,node_autobalance toneAmber
class node_intake,node_hopper,node_feeder,node_shooter,node_calculator,node_turret,node_turretcommand,node_climber,node_climbercommands toneMint
class node_pathautos,node_pathpaths toneRose
class node_operator toneIndigo
```

## Components

### Robot Runtime

- [Robot Lifecycle](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/Robot.java): `src/main/java/frc/robot/Robot.java`
- [Robot Container](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/RobotContainer.java): `src/main/java/frc/robot/RobotContainer.java`
- [Teleop Controller](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/logics/teleopController.java): `src/main/java/frc/robot/logics/teleopController.java`

### Drive and Vision

- [Swerve Drive](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/swerveDrive/SwerveSubsystem.java): `src/main/java/frc/robot/subsystems/swerveDrive/SwerveSubsystem.java`
- [Vision Estimation](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/logics/Vision.java): `src/main/java/frc/robot/logics/Vision.java`
- [Drive Commands](https://github.com/team-4361/robotcode-2026/tree/main/src/main/java/frc/robot/commands/swervedrive/drivebase): `src/main/java/frc/robot/commands/swervedrive/drivebase`
- [Auto Balance](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/commands/swervedrive/auto/AutoBalanceCommand.java): `src/main/java/frc/robot/commands/swervedrive/auto/AutoBalanceCommand.java`

### Robot Mechanisms

- [Intake](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/IntakeSubsystem.java): `src/main/java/frc/robot/subsystems/IntakeSubsystem.java`
- [Hopper](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/HopperSubsystem.java): `src/main/java/frc/robot/subsystems/HopperSubsystem.java`
- [Feeder](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/FeederSubsystem.java): `src/main/java/frc/robot/subsystems/FeederSubsystem.java`
- [Shooter](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/ShooterSubsystem.java): `src/main/java/frc/robot/subsystems/ShooterSubsystem.java`
- [Shot Calculator](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/util/ShooterCalculator.java): `src/main/java/frc/robot/util/ShooterCalculator.java`
- [Turret](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/TurretSubsystem.java): `src/main/java/frc/robot/subsystems/TurretSubsystem.java`
- [Turret Command](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/commands/Turret/TurretCommand.java): `src/main/java/frc/robot/commands/Turret/TurretCommand.java`
- [Climber](https://github.com/team-4361/robotcode-2026/blob/main/src/main/java/frc/robot/subsystems/ClimberSubsystem.java): `src/main/java/frc/robot/subsystems/ClimberSubsystem.java`
- [Climber Commands](https://github.com/team-4361/robotcode-2026/tree/main/src/main/java/frc/robot/commands/Climber): `src/main/java/frc/robot/commands/Climber`

### Autonomous Routines

- [PathPlanner Autos](https://github.com/team-4361/robotcode-2026/tree/main/src/main/deploy/pathplanner/autos): `src/main/deploy/pathplanner/autos`
- [PathPlanner Paths](https://github.com/team-4361/robotcode-2026/tree/main/src/main/deploy/pathplanner/paths): `src/main/deploy/pathplanner/paths`

### Other components

- **Operator**

## Connections

- Operator → Teleop Controller: provides input (evidence: `src/main/java/frc/robot/logics/teleopController.java`)
- Teleop Controller → Swerve Drive: commands drive (evidence: `src/main/java/frc/robot/logics/teleopController.java`)
- Robot Lifecycle → Robot Container: creates (evidence: `src/main/java/frc/robot/Robot.java`)
- Robot Lifecycle → Robot Container: runs vision update (evidence: `src/main/java/frc/robot/Robot.java`)
- Robot Container → Swerve Drive: creates drivebase (evidence: `src/main/java/frc/robot/RobotContainer.java`)
- Robot Container → Intake: creates subsystem (evidence: `src/main/java/frc/robot/RobotContainer.java`)
- Robot Container → Hopper: creates subsystem (evidence: `src/main/java/frc/robot/RobotContainer.java`)
- Robot Container → Feeder: creates subsystem (evidence: `src/main/java/frc/robot/RobotContainer.java`)
- Robot Container → Shooter: creates subsystem (evidence: `src/main/java/frc/robot/RobotContainer.java`)
- Robot Container → Turret: creates subsystem (evidence: `src/main/java/frc/robot/RobotContainer.java`)
- Robot Container → PathPlanner Autos: builds chooser (evidence: `src/main/java/frc/robot/RobotContainer.java`)
- Shooter → Shot Calculator: calculates RPM (evidence: `src/main/java/frc/robot/subsystems/ShooterSubsystem.java`)
- Shooter → Swerve Drive: reads pose (evidence: `src/main/java/frc/robot/subsystems/ShooterSubsystem.java`)
- Vision Estimation → Swerve Drive: adds pose estimate (evidence: `src/main/java/frc/robot/logics/Vision.java`)
- Drive Commands → Swerve Drive: commands drive (evidence: `src/main/java/frc/robot/commands/swervedrive/drivebase/AbsoluteDrive.java`)
- Auto Balance → Swerve Drive: commands balance (evidence: `src/main/java/frc/robot/commands/swervedrive/auto/AutoBalanceCommand.java`)
- Climber Commands → Climber: commands mechanism (evidence: `src/main/java/frc/robot/commands/Climber/WinchUp.java`)
- PathPlanner Autos → PathPlanner Paths: references paths
