FRC Team 172 Robot Code - 2025 Season
This repository contains the robot code for Northern Force FRC Team 172's 2025 competition robot, built using WPILib's command-based framework in C++.
Before building this project, ensure you have the following installed:
- WPILib: Download and install the latest 2025 WPILib suite from WPILib Releases
- Java 17 or higher: Required for Gradle build system
- Git: For version control
- Visual Studio Code with the WPILib extension (recommended)
- Or any C++ IDE with proper toolchain support
git clone <repository-url>
cd Rebuilt-RebuiltTo build and run the robot code in simulation mode:
# Build the project for simulation
./gradlew build -Ptoolchain-optional-roboRio
# Run robot simulation (native C++)
./gradlew simulateNativeFirst, install the required toolchain for building RoboRIO binaries:
./gradlew installRoboRioToolchain# Build robot executable
./gradlew build
# Or build release version
./gradlew frcUserProgramReleaseExecutable- Robot must be powered on and connected to your development machine
- Ensure the robot's team number is set correctly (Team 172)
# Deploy robot code to RoboRIO (this also starts the robot program)
./gradlew deploy# Run all tests
./gradlew test
# Run specific test executables
./gradlew checkFrcUserProgramTestDebugGoogleTestExe# Start robot simulation (C++ native)
./gradlew simulateNative
# Start robot simulation in debug mode
./gradlew simulateNativeDebug
# Available simulation tools:
./gradlew Glass # Robot state visualization
./gradlew ShuffleBoard # Dashboard and data visualization
./gradlew OutlineViewer # NetworkTables viewersrc/main/cpp/: Main robot codesrc/main/include/: Header filessrc/test/cpp/: Unit testssrc/main/deploy/: Files deployed to robot
# Clean build artifacts
./gradlew clean
# Full build and test
./gradlew build
# Deploy to robot
./gradlew deploy
# Generate VS Code configuration
./gradlew generateVsCodeConfig
# List all available tasks
./gradlew tasksTo add or update vendor dependencies:
# Install from URL
./gradlew vendordep --url=<vendor-json-url>
# View native dependency graph
./gradlew printNativeDependencyGraph"No Toolchain Found for roboRio"
./gradlew installRoboRioToolchainBuild fails with missing toolchain
# Use optional toolchain flag for simulation-only builds
./gradlew build -Ptoolchain-optional-roboRioRobot not found during deployment
# Discover robot on network
./gradlew discoverroborio- Check WPILib documentation: https://docs.wpilib.org
- FRC Programming resources: https://frc-docs.readthedocs.io
- Team 172 specific questions: Contact team mentors/programmers
- Team Number: 172 (Northern Force)
- Season: 2025
- Framework: WPILib Command-Based
- Language: C++
This project is licensed under the WPILib BSD license. See WPILib-License.md for details.