Fixed getState error

This commit is contained in:
thenetworkgrinch
2023-11-29 17:51:42 -06:00
parent 3fe128e53c
commit 04466ef81d

View File

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