Updated to 2024

This commit is contained in:
thenetworkgrinch
2024-01-15 14:37:13 -06:00
parent 3fd8493ccb
commit a71d7a0b4e
185 changed files with 6910 additions and 10987 deletions

View File

@@ -44,7 +44,8 @@ public class AnalogGyroSwerve extends SwerveIMU
@Override
public void factoryDefault()
{
offset = new Rotation3d(0, 0, Math.toRadians(gyro.getAngle()));
gyro.calibrate();
offset = new Rotation3d(0, 0, 0);
}
/**
@@ -73,7 +74,7 @@ public class AnalogGyroSwerve extends SwerveIMU
*/
public Rotation3d getRawRotation3d()
{
return new Rotation3d(0, 0, Math.toRadians(gyro.getAngle()));
return new Rotation3d(0, 0, Math.toRadians(-gyro.getAngle()));
}
/**