Build & Deploy
This page explains how to build, deploy, and simulate robot code.
Build
- VS Code:
Ctrl + Shift + P→ Build Robot Code - Terminal:
./gradlew build
Deploy to Robot
- Connect via USB or Wi‑Fi
Ctrl + Shift + P→ Deploy Robot Code- Wait for
BUILD SUCCESSFUL - Reboot robot; check Driver Station lights
Simulation
Run:
Ctrl + Shift + P → Simulate Robot Code
The simulation GUI will launch alongside your program.
Troubleshooting
| Issue | Fix |
|---|---|
| “No roboRIO found” | Verify team = 5847, disable firewall, use USB |
| Gradle hangs | ./gradlew --stop then ./gradlew clean build |
| Vendor deps missing | VS Code → WPILib: Manage Vendor Libraries → Install new |