Skip to content

FRC-Chain-Reaction-Robotics/Something2

 
 

Repository files navigation

SwerveBot-2022

Run on Repl.it

Team 3512's swerve drive code for the 2022 offseason

Written in Java utilizing WPILib's Command-Based structure

Modified from Team 364's BaseFalconSwerve project to utilize NEO motors + WPILib PID controllers.

Therefore, their instructions on modifiying the constants to fit your robot will also work on this repo as well.

Note:

Since it uses the WPILib PID controllers, this means that controls are running onboard the roboRIO. If you wish to utilize the internal Spark Max PID controller to save utilization of the roboRIO, then modifications are needed.

Configurations

  • Works with a swerve drive with NEO brushless motors, Spark Max motor controllers, CTRE CANCoders, and CTRE Pigeon 2.0 IMU.
  • Drive and steer ratios are configured for the SDS MK4 L4 modules, but can be easily be adapted to other modules.
  • We've also cut the speed by 50% in the TeleopSwerve command for our own robot. Definitely change/remove this accordingly, especially when using modules with different drive gear ratios.
  • ,

About

The source code the 2022 FRC postseason robot. Credit goes to FRC 3512.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.6%
  • Nix 0.4%