Skip to content

Team1710CTO/MK3-Swerve

Repository files navigation

MK3 swerve calibration instructions

Please read through entire readme before deploying to robot.
  1. Make sure your firmware is relitivly up to date!
    1. Our bots current firmware versions:
    2. Roborio: 2021_v3
    3. Falcon500's: 21.0.0
    4. CANCoder's: 20.1
  2. While you are in the phoenix tuner make sure you know what each motor and cancoders CAN ids are.
  3. Clone this repository!
  4. Enter the CAN id's into lines 34-49 in SwerveDrivetrain.java. It is at this point you will choose a "front". This is important for later.
  5. Comment out line 109 in SwerveDrivetrain.java in addtion to lines 96 and 101 in SwerveModuleMK3.java
  6. Deploy to robot and enable.
  7. turn each wheel to point to the "front" you have choosen.
  8. Open the smartdashboard and record the numbers in the boxes numbered 0-3.
  9. Enter the numbers gathered above into their corresponding offset in SwerveDrivetrain.java lines 29-32.
    1. 0: front left
    2. 1: front right
    3. 2: back left
    4. 3: back right
  10. Uncomment line 109 in SwerveDrivetrain.java in addtion to lines 96 and 101 in SwerveModuleMK3.java
  11. Happy swerving!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages