Code repository for our main 2025 REEFSCAPE robot.
Find a file
Ashton A. f53cb5fc27
Merge pull request #46 from TeamParadise/event/arlchamps
Merge ARL Champs changes into develop
2025-10-27 13:55:07 -07:00
.idea Add additional parameter to frequency methods in PhoenixUtil 2025-05-20 11:35:52 -07:00
.run Document run configurations 2025-01-03 17:39:27 -08:00
.vscode Add IDEA run configurations, other minor changes 2024-12-31 12:12:29 -07:00
.wpilib Update project year 2025-01-03 19:26:29 -08:00
gradle/wrapper Add basic project files 2024-12-31 11:45:55 -07:00
images Push banner header for README 2025-01-03 17:46:00 -08:00
licenses Partially update to the kickoff release of Phoenix 2025-01-03 19:47:12 -08:00
src Update at 'Sat Oct 25 10:49:47 MST 2025' 2025-10-25 10:49:48 -07:00
vendordeps Remove PathPlannerLib, update Phoenix 6 vendordep 2025-05-20 08:19:03 -07:00
vision_backup/calibration Add rest of the camera calibration 2025-03-10 12:05:01 -07:00
.gitignore Add run configs to .gitignore 2025-01-03 13:12:51 -08:00
build.gradle Move base constants into a "globalconstants" package 2025-07-08 18:25:13 -07:00
elastic-layout.json New line at end of Elastic layout 2025-08-22 08:37:36 -07:00
gradlew Add basic project files 2024-12-31 11:45:55 -07:00
gradlew.bat Add basic project files 2024-12-31 11:45:55 -07:00
LICENSE Add MIT License 2024-12-31 11:39:04 -07:00
README.md Parameterize SwerveModule usage 2025-01-03 20:13:00 -08:00
settings.gradle Add basic project files 2024-12-31 11:45:55 -07:00
simplified-build.gradle Partially update to the kickoff release of Phoenix 2025-01-03 19:47:12 -08:00

FRC 1165 - Team Paradise Banner

2025 Robot Code

Setting Up Code Environment

Note

This code repository is meant to be used in IntelliJ, but it can be used in Visual Studio Code. In VS Code, you won't be able to run code replay or run performance profiling without going through the terminal.

IntelliJ Setup
  1. Install IntelliJ IDEA Community Edition (free) or IntelliJ IDEA Ultimate (paid, free through GitHub Student Developer Pack). Make sure you have the latest version of WPILib 2025 installed as well.
  2. Add the FRC IntelliJ plugin. This can be installed in the IDE directly by going through File -> Settings -> Plugins.
  3. Clone this repository using your favorite Git client, and open it in IntelliJ.
  4. Go to File -> Project Structure, and hit the "Edit" button next to SDK. Press the "plus" icon, press "Add JDK from disk...", and go to the directory "C:\Users\Public\wpilib\2025\jdk" and add it. This ensures that we are using the officially supported JDK version from WPILib, to hopefully minimize issues.
  5. Run the "Build Robot" run configuration once, just to make sure that you've downloaded all dependencies.
  6. (Optional) Add the google-java-format plugin for proper code formatting, or, just let spotless handle it when building.
  7. (Optional) You should see a prompt in the bottom right corner of IntelliJ asking you to enable google-java-format, if so, click "Enable for this project". If not, go to "File -> Settings -> google-java-format settings", and enable it.
VS Code Setup
  1. Install the latest version of WPILib and it's built-in version of VS Code.
  2. Clone this repository using your favorite Git client, and open it in VS Code.
  3. Build the project once to make sure that all dependencies have been downloaded.
  4. (Optional) Add the google-java-format extension through VS Code's built-in extension manager.
  5. (Optional) When/if you format code for the first time, make sure you select "Google Java Format for VS Code". Or, don't format, and just let spotless handle it when building.

Run Configurations

Build Robot

IntelliJ

Just run the "Build Robot" run configuration by selecting it and hitting the play button.

VS Code

Open the Command Palette (Ctrl+Shift+P) and type WPILib: Build Robot Code.

Terminal/PowerShell

Open the project folder in a Unix terminal or PowerShell, and run gradlew build.

Build & Deploy

IntelliJ

Just run the "Build & Deploy" run configuration by selecting it and hitting the play button.

VS Code

Open the Command Palette (Ctrl+Shift+P) and type WPILib: Deploy Robot Code. Or, use the keyboard shortcut "Shift+F5".

Terminal/PowerShell

Open the project folder in a Unix terminal or PowerShell, and run gradlew deploy.

Build & Deploy Robot with Debugging and Performance Profiling (with VisualVM or other JMX client)

IntelliJ

Just run the "Build & Deploy Robot with Debugging and Performance Profiling" run configuration by selecting it and hitting the play button. Use IntelliJ's built-in debugger and some JMX client for performance profiling.

VS Code/Terminal/PowerShell

Open the project folder in a Unix terminal or PowerShell, and run gradlew deploy -PprofilingMode -PdebugMode=true. Use any Java debugger and some JMX client for performance profiling.

Build & Simulate

IntelliJ

Just run the "Build & Simulate" run configuration by selecting it and hitting the play button. The Glass "simgui" will open by default, but you can also use Driver Station.

VS Code

Open the Command Palette (Ctrl+Shift+P) and type WPILib: Simulate Robot Code. Or, use the keyboard shortcut "Shift+F5". You can select between "simgui", Driver Station, or both.

Terminal/PowerShell

Open the project folder in a Unix terminal or PowerShell, and run gradlew simulateJava.

Build & Replay

IntelliJ

Just run the "Build & Replay" run configuration by selecting it and hitting the play button. Use AdvantageScope to load and replay any log files.

VS Code/Terminal/PowerShell

Open the project folder in a Unix terminal or PowerShell, and run gradlew simulateJava -PreplayMode. Use AdvantageScope to load and replay any log files.