]> git.taranathan.com Git - FRC2026.git/commitdiff
Update Turret.java
authormaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Mon, 16 Feb 2026 21:06:12 +0000 (13:06 -0800)
committermaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Mon, 16 Feb 2026 21:06:12 +0000 (13:06 -0800)
src/main/java/frc/robot/subsystems/turret/Turret.java

index 1ad759b33b46c1c5f86c595df0dd5e4fcf7ffa6f..d604fa014268dc1f55376e315271f3164d1f5d10 100644 (file)
@@ -142,7 +142,7 @@ public class Turret extends SubsystemBase implements TurretIO{
        }
 
        public boolean atGoal() {
-               return Math.abs(setpoint.position - lastGoalRad) < Units.degreesToRadians(1.5);
+               return Math.abs(setpoint.position - getPositionRad()) < Units.degreesToRadians(2.0);
        }
 
        public double getPositionRad() {