Inertial Sensor turning infinitely

So I’ve been using the same inertial sensor on our robot for two years now, but we recently moved the gyro mount on the robot. The gyro has been moved directly down about 2 inches, but kept the exact same orientation. When I tell the robot to turn during autonomous, the drivetrain turns in the opposite direction, and turns infinitely. Any help? My code for autonomous is below.

void autonomous(void) 
{
    // Calibrate the GPS Sensor before starting
  smartdrive autodrive(LeftMotors, RightMotors, Inertial3, 8.3, 12.5, 8, inches, 1.66);
  autodrive.setDriveVelocity(100,percent);
  autodrive.setTurnVelocity(75,percent);
  Blocker.spinToPosition(360,degrees);

  autodrive.driveFor(forward,22,inches);
  autodrive.turnFor(left,15,degrees);
  autodrive.driveFor(forward,12,inches);

  intakeMotors.spinToPosition(80,degrees);
  autodrive.driveFor(reverse,32,inches);

  intakeMotors.spinToPosition(-40,degrees);
  intakeMotors.resetRotation();

  autodrive.turnFor(left,60,degrees);
  autodrive.setDriveVelocity(60,percent);
  autodrive.driveFor(reverse,4,inches);
  
}

P.S. I’m still using the Vexcode Pro V5 client, could that be the issue?

We had this issue with our sensor, and the fix was turning the turn velocity down to like 5%

An easy thing to try first is to recalibrate the inertial sensor by pressing devices → the port you have it on → then Calibrate, making sure that it is still when you do it.

if that is the case, then does the Inertial3.calibrate(); function that I use in the programming not accomplish the same feat? If it helps to calibrate it manually, I’ll try it, but I think the functions would work the same.

I would try to put that command in the Auton program then

I have that command in multiple places in the programming, but it changes nothing.