Skip to content

How to customize this code

2018macbookair edited this page Jun 6, 2024 · 1 revision

So, you want to adapt this code for other robots? This should be pretty easy and can be done in just a couple steps!

Clone and open up the repo in your chosen code editor (probably VSCode). Navigate to src/main/java/utils/Constants.java 3-1. Make sure to change everything from lines 77-89, as these are the sparkmax motor controllers for each module. 3-2. The next important thing to change is the chassis angular offset for each of the modules (lines 67-70). The method for this can be found in the "How to find module angular offset" section. Change controller settings/keybinds in src/main/java/RobotContainer.java Feel free to delete any files that are not relevant to that years game, an example being the shooter-intake folder from 2024 (current) game, if there is not a shooter required for that years game. PID constants will need to be changed, the processes for this can be found in the "PID Tuning" section of these docs.

Clone this wiki locally