Repo for development of code for a field oriented swerve chassis. This repo name is a bit of a misnomer - it's our 2020 Robot code + the code for a swerve chassis.
Our swerve code was largely lifted from 2767, don't consider it a reference implementation. We are still learning :)
Currently loading cancoder offset zeros from a hard coded array inside Drivetrain.java
TODO: clean this up so it's more reliable/robust
ABSOLUTE_ENCODER_OFFSET
array in Drivetrain.java
These are mostly the same as the 2020 robot, see the 2020 repo for a breakdown of subsystem capabilities until we get better documentation added here.
Unit tests are located below the /src/test
directory. They are used to
perform automated verifications of our codes functionality.
To run all tests from the command line from within the project folder:
$ ./gradlew test
Gradle should download all required packages to support running the tests and display PASS/FAIL results for each test case in the terminal.
You can also run tests in a more interactive manner from within vscode using the "Java Test Runner" extension.
From this plugin you can easily navigate through the tests, run tests against specific units, inspect test results, etc.