Skip to content

Commit

Permalink
known default settings on modules
Browse files Browse the repository at this point in the history
  • Loading branch information
an-prata committed Oct 7, 2023
1 parent 9614906 commit 0e6f9aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/frc/robot/subsystems/SwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public SwerveModule(int movementMotorID, int rotationalMotorID, int canCoderID,
movementMotor.setSmartCurrentLimit(40);

angularEncoder = new CANCoder(canCoderID);
angularEncoder.configFactoryDefault();
angularEncoder.configSensorInitializationStrategy(SensorInitializationStrategy.BootToAbsolutePosition, 1000);

rotationEncoder = rotationMotor.getEncoder();
Expand Down

0 comments on commit 0e6f9aa

Please sign in to comment.