This repository contains the code used for the 9584 version of the WestCoast Products 2026 Competitive Concept.
The project is based on one of CTRE's Phoenix 6 example projects. It uses WPILib command-based programming to manage robot subsystems and actions, a Limelight for vision, and Pathplanner for autonomous path following.
Simulation We use MapleSim with AdvantageScope for simulation. Using xbox controller to control in the simulation
To start up simulation:
- Install MapleSim and AdvantageScope from their respective websites.
- Run
./gradlew simulateJavain the terminal or WPILib: Simulate Robot Code to start the simulation. - Open AdvantageScope and connect to the simulator.
- On Windows, either do File > Connect To Simulator > Default: NetworkTables 4 or press Ctrl+Shift+K to connect.
- On Mac, press Ctrl+Shift+K to connect.
- Once connected, in the sidebar expand
Poseand dragrobotPoseinto the Poses box at the bottom so the robot appears on the field. - In the AdvantageScope tree, expand
AdvantageKit > RealOutputs > Fuel Simulationand dragFuelsinto a graph or table to monitor simulated fuel levels alongside the pose. - Open
App > AdvantageScope(left top corner) and setUse Custom Assets Folderto~/9584-wcp-code-2026/ascope_assetsso the custom 9584 robot model loads in the viewer.