mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Fixed getState error
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user