]> git.taranathan.com Git - FRC2026.git/commitdiff
fdsa
authormixxlto <maxtan0626@gmail.com>
Sun, 25 Jan 2026 22:57:18 +0000 (14:57 -0800)
committermixxlto <maxtan0626@gmail.com>
Sun, 25 Jan 2026 22:57:18 +0000 (14:57 -0800)
src/main/java/frc/robot/subsystems/turret/Turret.java

index 0552e40c40c9ef2346ed1ba0fbf136d43001f02a..914e8f20b6035d66dcaf1735dd1948701bc4087d 100644 (file)
@@ -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;