See the online changelog for information about updates to the template that may have been released since you created your project.
A template project for an FRC swerve drivetrain that uses REV MAXSwerve Modules.
Note that this is meant to be used with 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.
To get started, make sure you have calibrated the zero offsets for the absolute encoders in the Hardware Client using the Absolute Encoder
tab under the associated turning SPARK MAX devices.
- SPARK MAX Firmware v1.6.2 - Adds features that are required for swerve
- REVLib v2023.1.2 - Includes APIs for the new firmware features
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 Constants.java
file.
The new codespace creation process uses the latest Ubuntu version, downloads and extracts the specified file, and replaces year and version references dynamically. It also sets up a desktop environment accessible from the browser using xfce4
and xrdp
.
The Dockerfile now includes the installation of the xfce4
and xrdp
packages to ensure a desktop environment is available for use during the container creation process.
A new post-create script post_create.sh
has been added to run the commands from the Dockerfile after the Codespace is fully built. This script ensures that the necessary setup steps are executed in the correct environment, including downloading and running the WPILibInstaller directly after extracting it.