How mechanical-advantage/robotcode2026public works
RobotCode2026 is the control software for team 6328’s Darwin FRC robot. The principal workflow is operator or field input into robot control, which coordinates autonomous/teleoperated behavior and physical subsystems; sensor and vision observations inform robot state, while Idun handles robot communication and logging. The repository also includes Northstar vision processing and a Hub Counter service. Edges are limited to relationships documented in the README or visible in indexed excerpts; several runtime connections are therefore left unverified rather than inferred.
Main entry points: app.py Counter orchestrator · RobotContainer.java Command setup · Robot.java Robot runtime · apriltag_worker.py Vision workers
Components 28
Robot control
- Robot entry
src/main/java/org/littletonrobotics/frc2026/Main.java - Robot runtime
src/main/java/org/littletonrobotics/frc2026/Robot.java - Command setup
src/main/java/org/littletonrobotics/frc2026/RobotContainer.java - Autonomous routines
src/main/java/org/littletonrobotics/frc2026/commands/auto - Swerve drive
src/main/java/org/littletonrobotics/frc2026/subsystems/drive - Robot mechanisms
src/main/java/org/littletonrobotics/frc2026/subsystems - Robot state
src/main/java/org/littletonrobotics/frc2026/RobotState.java - Power estimation
src/main/java/org/littletonrobotics/frc2026/energy
Sensing and vision
- Vision workers
northstar/apriltag_worker.py - Object detection worker
northstar/objdetect_worker.py - Object detector
northstar/pipeline/ObjectDetector.py - Vision observations
northstar/vision_types.py - Vision streaming
northstar/output/StreamServer.py - Camera capture
northstar/pipeline/Capture.py - Camera configuration
northstar/config/config.py
Robot services
- Counter orchestrator
hubcounter/hub_counter/app.py - Ball counting
hubcounter/hub_counter/gpio/ball_counter.py - GPIO monitoring
hubcounter/hub_counter/gpio/channel_monitor.py - NetworkTables client
hubcounter/hub_counter/network/nt_client.py - Counter web server
hubcounter/hub_counter/web/server.py - Counter API
hubcounter/hub_counter/web/routes/api.py - LED feedback
hubcounter/hub_counter/led/controller.py - Dashboard browser
hubcounter/hub_counter/web/static/app.js
Robot infrastructure
- Idun client
idun/src/main/cpp/idun/IdunClient.cpp - Managed data logs
idun/src/main/cpp/idun/IdunLogManager.cpp
Other components
- Operator / field
- Robot hardware
- NetworkTables
Connections 29
- Robot entry → Robot runtime: starts
src/main/java/org/littletonrobotics/frc2026/Main.java - Operator / field → Command setup: provides input
- Command setup → Autonomous routines: configures
- Command setup → Swerve drive: commands
- Command setup → Robot mechanisms: commands
- Robot runtime → Command setup: uses setup
- Swerve drive → Robot state: updates state
- Vision workers → Camera configuration: reads
northstar/apriltag_worker.py - Vision workers → Vision observations: emits observations
northstar/apriltag_worker.py - Vision workers → Vision streaming: streams frames
northstar/apriltag_worker.py - Object detection worker → Object detector: runs detection
northstar/objdetect_worker.py - Object detection worker → Vision observations: emits observations
northstar/objdetect_worker.py - Object detection worker → Vision streaming: streams frames
northstar/objdetect_worker.py - Camera capture → Vision workers: supplies frames
- Vision observations → Robot state: informs state
- Counter orchestrator → Ball counting: uses counter
hubcounter/hub_counter/app.py - Counter orchestrator → NetworkTables client: publishes counts
hubcounter/hub_counter/app.py - Counter orchestrator → Counter web server: starts server
hubcounter/hub_counter/app.py - Counter orchestrator → LED feedback: controls patterns
hubcounter/hub_counter/app.py - Counter orchestrator → GPIO monitoring: uses monitor
hubcounter/hub_counter/app.py - Counter web server → Counter API: registers routes
hubcounter/hub_counter/web/server.py - Dashboard browser → Counter API: requests data
- NetworkTables client → NetworkTables: publishes and reads
hubcounter/hub_counter/network/nt_client.py - Counter orchestrator → NetworkTables: polls control state
hubcounter/hub_counter/app.py - Idun client → Robot runtime: integrates with
idun/src/main/cpp/idun/IdunClient.cpp - Robot runtime → Managed data logs: records logs
- Swerve drive → Robot hardware: controls
- Robot mechanisms → Robot hardware: controls
- Power estimation → Robot runtime: supports operation