mirror of
https://github.com/Team4388/2025-Programer-Training.git
synced 2026-06-08 16:28:05 -06:00
remove the gryo angles.
This commit is contained in:
@@ -225,16 +225,6 @@ public class SwerveDrive extends SubsystemBase {
|
|||||||
gyro.resetFlip();
|
gyro.resetFlip();
|
||||||
rotTarget = gyro.getAngle();
|
rotTarget = gyro.getAngle();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void resetGyroRightBlue() {
|
|
||||||
gyro.resetRightSideBlue();
|
|
||||||
rotTarget = gyro.getAngle();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void resetGyroRightAmp() {
|
|
||||||
gyro.resetAmpSide();
|
|
||||||
rotTarget = gyro.getAngle();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void stopModules() {
|
public void stopModules() {
|
||||||
for (SwerveModule module : this.modules) {
|
for (SwerveModule module : this.modules) {
|
||||||
|
|||||||
@@ -150,28 +150,6 @@ public class RobotGyro {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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.
|
* Get Yaw, Pitch, and Roll data.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user