Fixed getState error

This commit is contained in:
thenetworkgrinch
2023-11-29 17:49:06 -06:00
parent 07095742e8
commit 3fe128e53c

View File

@@ -276,7 +276,7 @@ public class SwerveModule
if (!SwerveDriveTelemetry.isSimulation)
{
position = driveMotor.getPosition();
azimuth = Rotation2d.fromDegrees(angleMotor.getPosition());
azimuth = Rotation2d.fromDegrees(getAbsolutePosition());
} else
{
return simModule.getPosition();