Last Updated: 3/9/2026
Setup Guide
This guide will help you set up the BREAD5940 2025 FRC robot code development environment.
Prerequisites
Required Software
-
WPILib 2025.3.2 - The FRC development suite
- Download from WPILib Releases
- Includes VS Code, Java JDK 17, and Gradle
-
Git - Version control system
- Download from git-scm.com
-
Java Development Kit 17
- Included with WPILib installation
- Required for compilation
Recommended Software
- AdvantageScope - Log file viewer and analysis tool
- PathPlanner - Autonomous path planning GUI
- Phoenix Tuner X - CTRE motor controller configuration
- PhotonVision - Vision processing configuration
Repository Setup
Clone the Repository
git clone https://github.com/BREAD5940/2025-Public.git
cd 2025-PublicOpen in VS Code
- Launch WPILib VS Code (2025)
- File → Open Folder
- Select the
2025-Publicdirectory - Wait for Gradle to sync (check bottom-right status bar)
Build the Project
Using VS Code
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type “WPILib: Build Robot Code”
- Press Enter
Alternatively, use the WPILib icon in the top-right corner.
Using Command Line
# Windows
.\gradlew build
# macOS/Linux
./gradlew buildDeploy to Robot
Prerequisites
- Robot powered on and connected via USB or WiFi
- Team number configured in
.wpilib/wpilib_preferences.json
Deployment Steps
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type “WPILib: Deploy Robot Code”
- Press Enter
- Wait for deployment to complete
Command Line Deployment
# Windows
.\gradlew deploy
# macOS/Linux
./gradlew deployRun Robot Simulator
The project includes desktop simulation support for testing without hardware.
Start Simulation
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type “WPILib: Simulate Robot Code”
- Select “Desktop” as the simulation type
- The simulation GUI will launch
Simulation Features
- Driver Station - Control robot modes (Teleop, Auto, Test)
- Robot GUI - Visualize subsystem states
- Field Visualization - View robot position and trajectories
Project Dependencies
The project uses several vendor libraries:
Vendor Dependencies
- CTRE Phoenix 6 - Motor controller and sensor libraries
- PathPlanner - Autonomous path planning
- PhotonVision - Vision processing
- AdvantageKit - Logging framework
- Jama 1.0.3 - Matrix mathematics library
Managing Vendor Dependencies
Vendor dependencies are stored in the vendordeps/ directory. To update:
- Press
Ctrl+Shift+P - Type “WPILib: Manage Vendor Libraries”
- Select “Check for updates (online)“
Troubleshooting
Build Failures
Issue: Gradle sync fails
- Solution: Delete
.gradlefolder and rebuild - Run:
./gradlew clean build
Issue: Java version mismatch
- Solution: Ensure WPILib VS Code is using JDK 17
- Check:
Ctrl+Shift+P→ “Java: Configure Java Runtime”
Deployment Issues
Issue: Cannot connect to robot
- Solution: Verify team number in
.wpilib/wpilib_preferences.json - Check network connection (USB or WiFi)
- Ensure robot is powered and radio is configured
Issue: Code deploys but doesn’t run
- Solution: Check Driver Station for error messages
- View RoboRIO logs via Driver Station
- Verify main class:
frc.robot.Main
Next Steps
- Review Project Structure to understand code organization
- Read Development Environment for IDE tips
- Explore Architecture Overview to understand the codebase