From 936272bc5d44327fc91389cb955743a89c81fa0d Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 12 Oct 2026 09:19:28 -0400 Subject: [PATCH] Removed distance check from findLaunchSpeedPassing() --- src/main/java/frc/robot/Utils.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/frc/robot/Utils.java b/src/main/java/frc/robot/Utils.java index 6639f5f..04aa1c9 100644 --- a/src/main/java/frc/robot/Utils.java +++ b/src/main/java/frc/robot/Utils.java @@ -197,11 +197,7 @@ public class Utils { return 0; } - // Check that the distance is reasonable. If the scoring distance is outside of this range, there was a problem. - if ((distanceInMeters < Constants.ShooterConstants.SCORING_DISTANCE_FIELD_MIN_METERS) || - (distanceInMeters > Constants.ShooterConstants.SCORING_DISTANCE_FIELD_MAX_METERS)) { - return 0; - } + // Note: there's currently no distance MIN/MAX test for passing. // Get the quadratic coefficients for the hood angle. Return with the error value if none are found. Constants.ShooterConstants.QuadraticCoef coefficients = Constants.ShooterConstants.PASSING_SPEED_COEFS_METERS.get(hoodAngleDeg);