This repository serves as the official 2026 Season Rebuilt Template for FRC Team 5655 KelRot. It is designed to provide a robust, competitive foundation for the upcoming season, integrating modern FRC software libraries and best practices.
Built upon AdvantageKit and Maple-Sim, this template supports advanced logging, simulation, and reliable swerve drive control.
- AdvantageKit Integration: Advanced log-replay functionality for faster debugging and tuning.
- Physics Simulation: Integrated Maple-Sim for realistic swerve drive physics in simulation.
- Advanced Control:
- Motion Profiling: Custom
SCurveProfileandExponentialPIDclasses for smooth motion control. - Swerve Drive: Pre-configured support for REV SparkMax/Flex swerve modules.
- Motion Profiling: Custom
- Utilities:
- LED System: Comprehensive
Ledsubsystem for robot state visualization. - Battery Monitoring:
BatteryUtilsfor tracking voltage sag and power usage. - Tunable Numbers:
LoggedTunableNumberfor real-time dashboard tuning without code deploys.
- LED System: Comprehensive
- Code Quality: Pre-configured
Spotlessformatting and structured Command-Based architecture.
- Operating System: Windows 10/11, macOS, or Linux.
- WPILib 2025/2026: The latest FRC Game Tools and Software.
To develop code for this project, you must interpret the official WPILib development environment. Follow these steps:
- Visit the official WPILib Releases Page on GitHub.
- Download the latest release installer for your operating system (e.g.,
WPILib_Windows-2026.x.x.iso).
- Windows: Right-click the downloaded
.isofile and select Mount. Open the mounted drive and runWPILibInstaller.exe. - macOS/Linux: Extract the downloaded archive and run the installer script.
- Welcome Screen: Click Start.
- Select Install Type: Choose "Install for this User" (Recommended).
- VS Code Options:
- If you don't have VS Code installed, let the installer download and install it.
- If you strictly want to use an existing install, select it, but the "Included VS Code" is safer for compatibility.
- Confirm: Click Install. The installer will set up the JDK, C++ Compiler, VS Code, and WPILib extensions.
- Finish: Once complete, you will see a new shortcut on your desktop labeled "FRC VS Code".
Important: Always open this project using the "FRC VS Code" shortcut, not the standard VS Code shortcut.
-
Clone the Repository:
git clone https://github.com/KelRot/lib.git cd 2026-library-lastversion -
Open in FRC VS Code:
- Launch FRC VS Code.
- Go to
File > Open Folder...and select the repository folder.
-
Build the Code:
- Press
Ctrl+Shift+P(Windows) orCmd+Shift+P(macOS) to open the Command Palette. - Type and select
WPILib: Build Robot Code. - The first build may take a few minutes as it downloads dependencies (vendor libraries, etc.).
- Press
This template supports high-fidelity simulation using Maple-Sim.
- Ensure you have AdvantageScope installed.
- In FRC VS Code, press
F5or verify the target is set to Simulation. - When the simulation launches, open AdvantageScope.
- Connect to the simulator within AdvantageScope to visualize the robot's motion and logs.
- Formatting: This project uses Spotless to enforce code style. Run the following command to fix formatting issues automatically:
./gradlew spotlessApply
Maintained by FRC Team 5655 KelRot