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