From 84fb68494f214a148c7ab9e86d8dc3bbf2133bfe Mon Sep 17 00:00:00 2001 From: WesleyWong-972 Date: Sun, 22 Mar 2026 10:52:08 -0700 Subject: [PATCH] idk i give up temporarily --- src/main/java/frc/robot/commands/gpm/Superstructure.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/commands/gpm/Superstructure.java b/src/main/java/frc/robot/commands/gpm/Superstructure.java index ce01637..bb16908 100644 --- a/src/main/java/frc/robot/commands/gpm/Superstructure.java +++ b/src/main/java/frc/robot/commands/gpm/Superstructure.java @@ -227,7 +227,10 @@ public class Superstructure extends Command { // } hood.setFieldRelativeTarget(Rotation2d.fromDegrees(ShotInterpolation.newHoodMap.get(distanceFromTarget)), hoodVelocity); - if (FieldConstants.underTrench(drivepose.getX(), drivepose.getY())) { + double x = drivepose.getX(); // compared as meters + double y = drivepose.getY(); + System.out.println("X: " + x + "Y: " + y); + if (FieldConstants.underTrench(x, y)) { hood.forceHoodDown(true); } else { hood.forceHoodDown(false); -- 2.39.5