Skip to content

Commit

Permalink
Added reset fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thenetworkgrinch committed Aug 24, 2024
1 parent 44af2d1 commit 1b46431
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions swervelib/SwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ public void pushOffsetsToEncoders()
*/
public void restoreInternalOffset()
{
angleMotor.setAbsoluteEncoder(null);
absoluteEncoder.setAbsoluteEncoderOffset(0);
angleOffset = configuration.angleOffset;
}
Expand Down

0 comments on commit 1b46431

Please sign in to comment.