# jenish094/1-3-vex-26-27 architecture

> Architecture diagram of the GitHub repository jenish094/1-3-vex-26-27, 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/jenish094/1-3-vex-26-27
- Repository: https://github.com/jenish094/1-3-vex-26-27

## Overview

This repository is VEX V5 competition-robot software: PROS lifecycle callbacks initialize the robot, then autonomous routines or driver controls operate configured hardware using odometry and motion/path helpers. A separate dashboard provides selector, console and image views on LVGL. The source index supports the major module boundaries and several references, but many implementation files were not sampled; edges are limited to those references or documented includes, and do not assert unshown call sequences.

Main entry points: [`src/main.cpp`](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/main.cpp) (Lifecycle callbacks), [`src/auto.cpp`](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/auto.cpp) (Autonomous routines), [`src/dash/core.cpp`](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/core.cpp) (Dashboard core), [`src/odom.cpp`](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/odom.cpp) (Odometry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_robot["Robot control"]
  node_lifecycle["Lifecycle callbacks<br/>[main.cpp]"]
  node_hardware["Robot hardware<br/>[robot_hardware.cpp]"]
  node_controls["Driver controls<br/>[controls.cpp]"]
  node_autonomous["Autonomous routines<br/>[auto.cpp]"]
end

subgraph group_motion["Motion and state"]
  node_odometry["Odometry<br/>[odom.cpp]"]
  node_motion_helpers["Motion helpers<br/>[movetopoint.cpp]"]
  node_path_following["Path following<br/>[path.cpp]"]
  node_robot_state["Robot state<br/>[robot_state.cpp]"]
  node_recording["Autonomous recording<br/>[recorder.cpp]"]
end

subgraph group_dashboard["Dashboard"]
  node_dashboard_core["Dashboard core<br/>[core.cpp]"]
  node_selector["Autonomous selector<br/>[selector.cpp]"]
  node_console["Console view<br/>[console.cpp]"]
  node_image_view["Image view<br/>[image.cpp]"]
  node_filesystem["Dashboard filesystem<br/>[filesystem.c]"]
  node_styles["Dashboard styles<br/>[core.c]"]
end

subgraph group_platform["Runtime platform"]
  node_pros["PROS device and RTOS API<br/>[api.h]"]
  node_lvgl["LVGL interface<br/>[lvgl.h]"]
end

node_competition(("Competition system"))

node_competition -->|"invokes callbacks"| node_lifecycle
node_lifecycle -->|"references"| node_autonomous
node_lifecycle -->|"references"| node_controls
node_lifecycle -->|"references"| node_odometry
node_lifecycle -->|"references"| node_dashboard_core
node_autonomous -->|"references"| node_hardware
node_autonomous -->|"references"| node_odometry
node_autonomous -->|"references"| node_motion_helpers
node_odometry -->|"references"| node_hardware
node_selector -->|"references"| node_recording
node_selector -->|"references"| node_styles
node_dashboard_core -.->|"configures"| node_filesystem
node_dashboard_core -.->|"configures"| node_styles
node_dashboard_core -->|"uses"| node_lvgl
node_controls -->|"uses"| node_pros
node_hardware -->|"uses"| node_pros
node_odometry -->|"uses"| node_pros
node_recording -->|"uses"| node_lvgl

click node_lifecycle "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/main.cpp"
click node_hardware "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/robot_hardware.cpp"
click node_controls "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/controls.cpp"
click node_autonomous "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/auto.cpp"
click node_odometry "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/odom.cpp"
click node_motion_helpers "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/movetopoint.cpp"
click node_path_following "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/path.cpp"
click node_robot_state "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/robot_state.cpp"
click node_recording "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/recorder.cpp"
click node_dashboard_core "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/core.cpp"
click node_selector "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/views/selector.cpp"
click node_console "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/views/console.cpp"
click node_image_view "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/views/image.cpp"
click node_filesystem "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/filesystem.c"
click node_styles "https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/styles/core.c"
click node_pros "https://github.com/jenish094/1-3-vex-26-27/blob/states/include/api.h"
click node_lvgl "https://github.com/jenish094/1-3-vex-26-27/blob/states/include/liblvgl/lvgl.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_lifecycle,node_hardware,node_controls,node_autonomous toneBlue
class node_odometry,node_motion_helpers,node_path_following,node_robot_state,node_recording toneAmber
class node_dashboard_core,node_selector,node_console,node_image_view,node_filesystem,node_styles toneMint
class node_pros,node_lvgl toneRose
class node_competition toneIndigo
```

## Components

### Robot control

- [Lifecycle callbacks](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/main.cpp): `src/main.cpp`
- [Robot hardware](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/robot_hardware.cpp): `src/robot_hardware.cpp`
- [Driver controls](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/controls.cpp): `src/controls.cpp`
- [Autonomous routines](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/auto.cpp): `src/auto.cpp`

### Motion and state

- [Odometry](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/odom.cpp): `src/odom.cpp`
- [Motion helpers](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/movetopoint.cpp): `src/movetopoint.cpp`
- [Path following](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/path.cpp): `src/path.cpp`
- [Robot state](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/robot_state.cpp): `src/robot_state.cpp`
- [Autonomous recording](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/recorder.cpp): `src/recorder.cpp`

### Dashboard

- [Dashboard core](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/core.cpp): `src/dash/core.cpp`
- [Autonomous selector](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/views/selector.cpp): `src/dash/views/selector.cpp`
- [Console view](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/views/console.cpp): `src/dash/views/console.cpp`
- [Image view](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/views/image.cpp): `src/dash/views/image.cpp`
- [Dashboard filesystem](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/filesystem.c): `src/dash/filesystem.c`
- [Dashboard styles](https://github.com/jenish094/1-3-vex-26-27/blob/states/src/dash/styles/core.c): `src/dash/styles/core.c`

### Runtime platform

- [PROS device and RTOS API](https://github.com/jenish094/1-3-vex-26-27/blob/states/include/api.h): `include/api.h`
- [LVGL interface](https://github.com/jenish094/1-3-vex-26-27/blob/states/include/liblvgl/lvgl.h): `include/liblvgl/lvgl.h`

### Other components

- **Competition system**

## Connections

- Competition system → Lifecycle callbacks: invokes callbacks
- Lifecycle callbacks → Autonomous routines: references (evidence: `src/main.cpp`)
- Lifecycle callbacks → Driver controls: references
- Lifecycle callbacks → Odometry: references (evidence: `src/main.cpp`)
- Lifecycle callbacks → Dashboard core: references (evidence: `src/main.cpp`)
- Autonomous routines → Robot hardware: references (evidence: `src/auto.cpp`)
- Autonomous routines → Odometry: references (evidence: `src/auto.cpp`)
- Autonomous routines → Motion helpers: references (evidence: `src/auto.cpp`)
- Odometry → Robot hardware: references (evidence: `src/odom.cpp`)
- Autonomous selector → Autonomous recording: references (evidence: `src/dash/views/selector.cpp`)
- Autonomous selector → Dashboard styles: references (evidence: `src/dash/views/selector.cpp`)
- Dashboard core → Dashboard filesystem: configures
- Dashboard core → Dashboard styles: configures
- Dashboard core → LVGL interface: uses
- Driver controls → PROS device and RTOS API: uses
- Robot hardware → PROS device and RTOS API: uses
- Odometry → PROS device and RTOS API: uses
- Autonomous recording → LVGL interface: uses
