Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
Update SwerveModule.java
Browse files Browse the repository at this point in the history
  • Loading branch information
legoguy1000 authored Jan 22, 2025
1 parent 9142958 commit df69db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/lib/util/swerve/SwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public SwerveModulePosition getPosition() {
return new SwerveModulePosition(
Conversions.rotationsToMeters(inputs.driveMotorSelectedPosition.in(Rotations),
Constants.Swerve.wheelCircumference),
Rotation2d.fromRotations(getCANcoder().getRotations() - angleOffset.getRotations()));
Rotation2d.fromRotations(inputs.angleMotorSelectedPosition.in(Rotations)));
}

}

0 comments on commit df69db8

Please sign in to comment.