FRC Team 172 Northern Force's robot code, built with WPILib 2026 and Java.
This repository contains the robot code for Team 172 - Northern Force, a FIRST Robotics Competition team. The project uses the WPILib framework to control our competition robot, featuring a swerve drive system, AprilTag vision processing, and autonomous path planning.
Before you can build and deploy this project, you'll need:
- WPILib 2026 - Download and install from WPILib Releases
- Java 17 - Included with WPILib installation
- Git - For version control
- Gradle - Included via Gradle wrapper (
gradlew)
To build the robot code:
./gradlew buildThis will compile the code and run all tests. The build process creates a deployable JAR file that can be uploaded to the robot.
To run the robot code in simulation mode:
./gradlew simulateJavaThis launches the simulation GUI where you can test robot functionality without physical hardware.
To deploy the code to the robot:
- Connect to the robot's network (either via WiFi or USB)
- Run the deploy command:
./gradlew deployThis will build the code and upload it to the RoboRIO (Team 172's robot controller).
src/main/java/frc/robot/- Main robot codeRobot.java- Main robot classzippy/- Configuration and container for the "Zippy" robotZippyContainer.java- Robot subsystems and command bindingsZippyConstants.java- Robot-specific constantsgenerated/- Auto-generated swerve drive configuration
src/main/java/org/northernforce/util/- Team utility classessrc/main/java/frc/robot/subsystems/- Robot subsystemsCommandSwerveDrivetrain.java- Swerve drive subsystemapriltagvision/- AprilTag vision processing
src/main/deploy/- Files deployed to the robot
This project uses Spotless for code formatting. Code is automatically formatted during compilation:
./gradlew spotlessApplyTo run the unit tests:
./gradlew test./gradlew clean- Clean build artifacts./gradlew tasks- List all available Gradle tasks./gradlew discoverroborio- Find the robot on the network
This project is licensed under the WPILib BSD license. See WPILib-License.md for details.