From: mixxlto Date: Sun, 25 Jan 2026 22:57:18 +0000 (-0800) Subject: fdsa X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=eac99fd6350351d3b0012911c11f5937835b84d7;p=FRC2026.git fdsa --- diff --git a/src/main/java/frc/robot/subsystems/turret/Turret.java b/src/main/java/frc/robot/subsystems/turret/Turret.java index 0552e40..914e8f2 100644 --- a/src/main/java/frc/robot/subsystems/turret/Turret.java +++ b/src/main/java/frc/robot/subsystems/turret/Turret.java @@ -152,8 +152,9 @@ public class Turret extends SubsystemBase implements TurretIO{ for (int i = -2; i <= 2; i++) { double candidate = robotRelativeGoal + Math.PI * 2 * i; - if (candidate < MIN_ANGLE_RAD || candidate > MAX_ANGLE_RAD) continue; - + if (candidate < MIN_ANGLE_RAD || candidate > MAX_ANGLE_RAD) { + continue; + } if (!found || Math.abs(candidate - lastGoalRad) < Math.abs(best - lastGoalRad)) { best = candidate; found = true;