mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-30 07:11:40 +00:00
Updated to 2024
This commit is contained in:
@@ -37,7 +37,8 @@ public class ADXRS450Swerve extends SwerveIMU
|
||||
@Override
|
||||
public void factoryDefault()
|
||||
{
|
||||
offset = new Rotation3d(0, 0, Math.toRadians(imu.getAngle()));
|
||||
imu.calibrate();
|
||||
offset = new Rotation3d(0, 0, 0);//Math.toRadians(-imu.getAngle()));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,7 +67,7 @@ public class ADXRS450Swerve extends SwerveIMU
|
||||
*/
|
||||
public Rotation3d getRawRotation3d()
|
||||
{
|
||||
return new Rotation3d(0, 0, Math.toRadians(imu.getAngle()));
|
||||
return new Rotation3d(0, 0, Math.toRadians(-imu.getAngle()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user