Skip to content

REVrobotics/MAXSwerve-Java-Template

Repository files navigation

MAXSwerve Java Template v2026.0

See the online changelog for information about updates to the template that may have been released since you created your project.

Description

A template project for an FRC swerve drivetrain that uses REV MAXSwerve Modules.

Note that this template is designed for a drivetrain composed of four MAXSwerve Modules, each configured with two SPARKS MAX, a NEO as the driving motor, a NEO 550 as the turning motor, and a REV Through Bore Encoder as the absolute turning encoder. If you are using SPARK Flex for either the drive motor or turning motor, you will need to update the classes accordingly.

To get started, make sure you have calibrated the zero offsets for the absolute encoders in Hardware Client 2 using the Absolute Encoder utility under the associated turning SPARK devices.

Prerequisites

  • SPARK MAX Firmware v26.1.0
  • REVLib v2026.0.0

Configuration

It is possible that this project will not work for your robot right out of the box. Various things like the CAN IDs, PIDF gains, chassis configuration, etc. must be determined for your own robot!

These values can be adjusted in the Configs.java and Constants.java files.