Skip to content

Commit

Permalink
Nah what bum did this
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenTomato5 committed Oct 7, 2024
1 parent c42d0e2 commit 99c0f4a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main/java/frc/robot/subsystems/drive/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public void runState() {

if (Constants.controller.getBackButtonPressed()) {
fieldRelative = !fieldRelative;
Logger.recordOutput("Drive/Field Rel", fieldRelative);
}
}

Expand Down Expand Up @@ -188,14 +189,6 @@ public void drive(
);

if (headingCorrection) {
// System.out.println(headingCorrection);
// System.out.println("Omgea = 0?" + (omega == 0));
// System.out.println(
// Math.abs(xSupplier.getAsDouble()) > Constants.Drive.CONTROLLER_DEADBAND
// );
// System.out.println(
// Math.abs(ySupplier.getAsDouble()) > Constants.Drive.CONTROLLER_DEADBAND
// );
if (
Math.abs(omega) == 0.0 &&
(Math.abs(xSupplier.getAsDouble()) > Constants.Drive.CONTROLLER_DEADBAND ||
Expand All @@ -206,7 +199,6 @@ public void drive(
lastHeadingRadians
) *
Constants.Drive.MAX_ANGULAR_SPEED;
// System.out.println("something is happening");
} else {
lastHeadingRadians = poseEstimator
.getEstimatedPosition()
Expand All @@ -230,7 +222,6 @@ public void drive(
DriverStation.getAlliance().get() == Alliance.Red;

if (fieldRelative) {
// TODO: INVERT THE GYRO, MULTIPLYING IT BY 1 IS SO STUPID!!!!!!!!!!!!!!!!!!!!!!!!!
drive.runVelocity(
ChassisSpeeds.fromFieldRelativeSpeeds(
linearVelocity.getX() *
Expand Down

0 comments on commit 99c0f4a

Please sign in to comment.