Swerve x kraken code?

Anyone have swerve x Java code my team can reference while trying to get our swerve working

What swerve modules do you have with which gearing?

What drive motors do you use?
What absolute encoders do you use?
What steering motors do you use?
What gyroscope do you use?

We have swerve X flipped with krakens for drive and steer pigeon 2.0 with ctre absolute encoders with a x2 gear ratio

Use the swerve drive generator

6 Likes

Sounds like a CTRE drive

If you have used this is there a way to get the code from it into our own project so we can use stuff like pathplanner and other programs

Yes you can copy the Java files for the drivetrain and it’s constants file to the same folders in your your project. I am not at my computer to tell you the names of those files right now though. You will then have to update the robot container yourself. You can also generate into an existing project

So if I make a project then generate it into that project I should have free access to change and alter stuff?

Yes

CTRE has an example with this already