From 07bb4dc1a3177109a346651c961ba1d73ca1d819 Mon Sep 17 00:00:00 2001 From: C4llSiqn <83995467+C4llSqin@users.noreply.github.com> Date: Tue, 29 Oct 2024 15:54:03 -0600 Subject: [PATCH] remove the gryo angles. --- .../frc4388/robot/subsystems/SwerveDrive.java | 10 --------- src/main/java/frc4388/utility/RobotGyro.java | 22 ------------------- 2 files changed, 32 deletions(-) diff --git a/src/main/java/frc4388/robot/subsystems/SwerveDrive.java b/src/main/java/frc4388/robot/subsystems/SwerveDrive.java index bd35742..d9beb10 100644 --- a/src/main/java/frc4388/robot/subsystems/SwerveDrive.java +++ b/src/main/java/frc4388/robot/subsystems/SwerveDrive.java @@ -225,16 +225,6 @@ public void resetGyroFlip() { gyro.resetFlip(); rotTarget = gyro.getAngle(); } - - public void resetGyroRightBlue() { - gyro.resetRightSideBlue(); - rotTarget = gyro.getAngle(); - } - - public void resetGyroRightAmp() { - gyro.resetAmpSide(); - rotTarget = gyro.getAngle(); - } public void stopModules() { for (SwerveModule module : this.modules) { diff --git a/src/main/java/frc4388/utility/RobotGyro.java b/src/main/java/frc4388/utility/RobotGyro.java index 966d2e0..1c74c2c 100644 --- a/src/main/java/frc4388/utility/RobotGyro.java +++ b/src/main/java/frc4388/utility/RobotGyro.java @@ -150,28 +150,6 @@ public void resetTwoSeventy() { } - public void resetRightSideBlue() { - resetZeroValues(); - - if (m_isGyroAPigeon) { - m_pigeon.setYaw(60); - } else { - m_navX.reset(); - } - - } - - public void resetAmpSide() { - resetZeroValues(); - - if (m_isGyroAPigeon) { - m_pigeon.setYaw(-60); - } else { - m_navX.reset(); - } - - } - /** * Get Yaw, Pitch, and Roll data. *