# eddyvs/vex2025-push-back architecture

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

- Interactive diagram: https://gitdiagram.com/eddyvs/vex2025-push-back
- Repository: https://github.com/eddyvs/vex2025-push-back

## Overview

This is a PROS C++ competition-robot project using EZ-Template and Okapi. The principal workflow is competition control invoking autonomous routines or driver control, with configured subsystems supplying motors, sensors, and solenoids to the drivetrain and odometry. The README identifies these responsibilities; the sampled source index confirms the project entry files and EZ-Template drive dependencies. Implementation details inside the unsampled team source are not inferred.

Main entry points: [`include/EZ-Template/drive/drive.hpp`](https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/drive/drive.hpp) (EZ-Template drive), [`src/main.cpp`](https://github.com/eddyvs/vex2025-push-back/blob/main/src/main.cpp) (Driver control), [`src/autons.cpp`](https://github.com/eddyvs/vex2025-push-back/blob/main/src/autons.cpp) (Autonomous routines), [`include/main.h`](https://github.com/eddyvs/vex2025-push-back/blob/main/include/main.h) (Team declarations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Competition control"]
  node_driver["Driver control<br/>[main.cpp]"]
  node_autonomous["Autonomous routines<br/>[autons.cpp]"]
  node_auton_select["Autonomous selection<br/>[auton_selector.hpp]"]
end

subgraph group_robot["Robot configuration"]
  node_team_config["Team declarations<br/>[main.h]"]
  node_subsystems["Motors and sensors<br/>[subsystems.hpp]"]
end

subgraph group_motion["Motion control"]
  node_chassis_setup["Chassis setup<br/>[main.cpp]"]
  node_tracking["Tracking wheels<br/>[tracking_wheel.hpp]"]
  node_ez_drive["EZ-Template drive<br/>[drive.hpp]"]
  node_pid["PID control<br/>[PID.hpp]"]
  node_slew["Slew limiting<br/>[slew.hpp]"]
  node_odom_controller["Odometry controller"]
  node_odom_model["Skid-steer model<br/>[skidSteerModel.hpp]"]
  node_okapi_builder["Chassis builder"]
end

subgraph group_platform["Robot platform"]
  node_pros_api["PROS device API<br/>[api.h]"]
  node_pros_motors["Motor devices<br/>[motor_group.hpp]"]
end

node_operator(("Robot operator"))
node_competition(("Competition system"))

node_competition -->|"runs control"| node_driver
node_competition -->|"runs routines"| node_autonomous
node_operator -.->|"controls robot"| node_driver
node_team_config -->|"includes declarations"| node_subsystems
node_team_config -->|"declares routines"| node_autonomous
node_driver -->|"configures chassis"| node_chassis_setup
node_driver -->|"sets up tracking"| node_tracking
node_driver -->|"uses devices"| node_subsystems
node_autonomous -->|"uses odometry"| node_odom_controller
node_autonomous -->|"uses movements"| node_ez_drive
node_chassis_setup -.->|"configures drive"| node_ez_drive
node_ez_drive -->|"uses control"| node_pid
node_ez_drive -->|"uses limiting"| node_slew
node_ez_drive -->|"uses tracking"| node_tracking
node_ez_drive -->|"drives motors"| node_pros_motors
node_okapi_builder -->|"builds controller"| node_odom_controller
node_okapi_builder -->|"selects model"| node_odom_model
node_pros_api -->|"exposes motors"| node_pros_motors

click node_driver "https://github.com/eddyvs/vex2025-push-back/blob/main/src/main.cpp"
click node_autonomous "https://github.com/eddyvs/vex2025-push-back/blob/main/src/autons.cpp"
click node_auton_select "https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/auton_selector.hpp"
click node_team_config "https://github.com/eddyvs/vex2025-push-back/blob/main/include/main.h"
click node_subsystems "https://github.com/eddyvs/vex2025-push-back/blob/main/include/subsystems.hpp"
click node_chassis_setup "https://github.com/eddyvs/vex2025-push-back/blob/main/src/main.cpp"
click node_tracking "https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/tracking_wheel.hpp"
click node_ez_drive "https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/drive/drive.hpp"
click node_pid "https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/PID.hpp"
click node_slew "https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/slew.hpp"
click node_odom_controller "https://github.com/eddyvs/vex2025-push-back/blob/main/include/okapi/api/chassis/controller/chassisControllerPid.hpp"
click node_odom_model "https://github.com/eddyvs/vex2025-push-back/blob/main/include/okapi/api/chassis/model/skidSteerModel.hpp"
click node_pros_api "https://github.com/eddyvs/vex2025-push-back/blob/main/include/api.h"
click node_pros_motors "https://github.com/eddyvs/vex2025-push-back/blob/main/include/pros/motor_group.hpp"
click node_okapi_builder "https://github.com/eddyvs/vex2025-push-back/blob/main/include/okapi/impl/chassis/controller/chassisControllerBuilder.hpp"

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_driver,node_autonomous,node_auton_select toneBlue
class node_team_config,node_subsystems toneAmber
class node_chassis_setup,node_tracking,node_ez_drive,node_pid,node_slew,node_odom_controller,node_odom_model,node_okapi_builder toneMint
class node_pros_api,node_pros_motors toneRose
class node_operator,node_competition toneIndigo
```

## Components

### Competition control

- [Driver control](https://github.com/eddyvs/vex2025-push-back/blob/main/src/main.cpp): `src/main.cpp`
- [Autonomous routines](https://github.com/eddyvs/vex2025-push-back/blob/main/src/autons.cpp): `src/autons.cpp`
- [Autonomous selection](https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/auton_selector.hpp): `include/EZ-Template/auton_selector.hpp`

### Robot configuration

- [Team declarations](https://github.com/eddyvs/vex2025-push-back/blob/main/include/main.h): `include/main.h`
- [Motors and sensors](https://github.com/eddyvs/vex2025-push-back/blob/main/include/subsystems.hpp): `include/subsystems.hpp`

### Motion control

- [Chassis setup](https://github.com/eddyvs/vex2025-push-back/blob/main/src/main.cpp): `src/main.cpp`
- [Tracking wheels](https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/tracking_wheel.hpp): `include/EZ-Template/tracking_wheel.hpp`
- [EZ-Template drive](https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/drive/drive.hpp): `include/EZ-Template/drive/drive.hpp`
- [PID control](https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/PID.hpp): `include/EZ-Template/PID.hpp`
- [Slew limiting](https://github.com/eddyvs/vex2025-push-back/blob/main/include/EZ-Template/slew.hpp): `include/EZ-Template/slew.hpp`
- [Odometry controller](https://github.com/eddyvs/vex2025-push-back/blob/main/include/okapi/api/chassis/controller/chassisControllerPid.hpp): `include/okapi/api/chassis/controller/chassisControllerPid.hpp`
- [Skid-steer model](https://github.com/eddyvs/vex2025-push-back/blob/main/include/okapi/api/chassis/model/skidSteerModel.hpp): `include/okapi/api/chassis/model/skidSteerModel.hpp`
- [Chassis builder](https://github.com/eddyvs/vex2025-push-back/blob/main/include/okapi/impl/chassis/controller/chassisControllerBuilder.hpp): `include/okapi/impl/chassis/controller/chassisControllerBuilder.hpp`

### Robot platform

- [PROS device API](https://github.com/eddyvs/vex2025-push-back/blob/main/include/api.h): `include/api.h`
- [Motor devices](https://github.com/eddyvs/vex2025-push-back/blob/main/include/pros/motor_group.hpp): `include/pros/motor_group.hpp`

### Other components

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

## Connections

- Competition system → Driver control: runs control
- Competition system → Autonomous routines: runs routines
- Robot operator → Driver control: controls robot
- Team declarations → Motors and sensors: includes declarations (evidence: `include/main.h`)
- Team declarations → Autonomous routines: declares routines (evidence: `include/main.h`)
- Driver control → Chassis setup: configures chassis (evidence: `src/main.cpp`)
- Driver control → Tracking wheels: sets up tracking
- Driver control → Motors and sensors: uses devices
- Autonomous routines → Odometry controller: uses odometry
- Autonomous routines → EZ-Template drive: uses movements
- Chassis setup → EZ-Template drive: configures drive
- EZ-Template drive → PID control: uses control (evidence: `include/EZ-Template/drive/drive.hpp`)
- EZ-Template drive → Slew limiting: uses limiting (evidence: `include/EZ-Template/drive/drive.hpp`)
- EZ-Template drive → Tracking wheels: uses tracking (evidence: `include/EZ-Template/drive/drive.hpp`)
- EZ-Template drive → Motor devices: drives motors (evidence: `include/EZ-Template/drive/drive.hpp`)
- Chassis builder → Odometry controller: builds controller (evidence: `include/okapi/impl/chassis/controller/chassisControllerBuilder.hpp`)
- Chassis builder → Skid-steer model: selects model (evidence: `include/okapi/impl/chassis/controller/chassisControllerBuilder.hpp`)
- PROS device API → Motor devices: exposes motors (evidence: `include/api.h`)
