From cc085659ae3dbb2b8a978a65c5a28cef7a3e2596 Mon Sep 17 00:00:00 2001 From: iefomit Date: Wed, 8 Apr 2026 22:43:52 -0700 Subject: [PATCH] incorrect comparison it's actually there :0 --- src/main/java/frc/robot/commands/gpm/LockedShoot.java | 2 +- src/main/java/frc/robot/commands/gpm/Superstructure.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/commands/gpm/LockedShoot.java b/src/main/java/frc/robot/commands/gpm/LockedShoot.java index e7a56f8..d287970 100644 --- a/src/main/java/frc/robot/commands/gpm/LockedShoot.java +++ b/src/main/java/frc/robot/commands/gpm/LockedShoot.java @@ -111,7 +111,7 @@ public class LockedShoot extends Command { Translation3d lookahead3d = new Translation3d(lookaheadPose.getX(), lookaheadPose.getY(), TurretConstants.DISTANCE_FROM_ROBOT_CENTER.getZ()); Translation3d target3d = new Translation3d(target.getX(), target.getY(), - target == FieldConstants.getHubTranslation().toTranslation2d() ? + target.equals(FieldConstants.getHubTranslation().toTranslation2d()) ? FieldConstants.getHubTranslation().getZ() : 0.0); // Height of 0 if it's not the hub goalState = ShooterPhysics.getShotParams( diff --git a/src/main/java/frc/robot/commands/gpm/Superstructure.java b/src/main/java/frc/robot/commands/gpm/Superstructure.java index 4fe7e05..cfad74c 100644 --- a/src/main/java/frc/robot/commands/gpm/Superstructure.java +++ b/src/main/java/frc/robot/commands/gpm/Superstructure.java @@ -112,7 +112,7 @@ public class Superstructure extends Command { Translation3d lookahead3d = new Translation3d(lookaheadPose.getX(), lookaheadPose.getY(), TurretConstants.DISTANCE_FROM_ROBOT_CENTER.getZ()); Translation3d target3d = new Translation3d(target.getX(), target.getY(), - target == FieldConstants.getHubTranslation().toTranslation2d() ? + target.equals(FieldConstants.getHubTranslation().toTranslation2d()) ? FieldConstants.getHubTranslation().getZ() : 0.0); // Height of 0 if it's not the hub goalState = ShooterPhysics.getShotParams( -- 2.39.5