diff --git a/src/main/java/frc/robot/auto/ShooterFunctions.java b/src/main/java/frc/robot/auto/ShooterFunctions.java index d06d866..e649a86 100644 --- a/src/main/java/frc/robot/auto/ShooterFunctions.java +++ b/src/main/java/frc/robot/auto/ShooterFunctions.java @@ -361,6 +361,13 @@ public boolean isDistanceWithinValidHubRange(Distance distance) { return distanceInInches >= minDistanceHub && distanceInInches <= maxDistanceHub; } + /** + * Determines whether the given velocity falls within the configured valid range. + * + * @param distance the Distance to check; will be converted to inches for comparison + * @param velocity the AngularVelocity to check + * @return true if the velocity is within the valid range for the given distance + */ public boolean isVelocityWithinValidHubRange(Distance distance, AngularVelocity velocity) { double velocityInRPS = velocity.in(RotationsPerSecond); return velocityInRPS >= minVelocityHub.value(distance.in(Inches))