From 4d1b353e25bcec5cc4effd177c647e1eed221bfd Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Tue, 31 Mar 2026 19:20:34 -0400 Subject: [PATCH] limelighter coriger --- src/main/java/frc/robot/commands/Limelighter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/frc/robot/commands/Limelighter.java b/src/main/java/frc/robot/commands/Limelighter.java index 811f3ec..345c982 100644 --- a/src/main/java/frc/robot/commands/Limelighter.java +++ b/src/main/java/frc/robot/commands/Limelighter.java @@ -65,6 +65,9 @@ public class Limelighter extends Command { x = 11.915394; BotPose = limelight3g.getBotPoseRed(); } + botx = BotPose[0]; + boty = BotPose[1]; + calcul = limelight3g.Calcule(botx, x, boty, 4, angle); if(calcul > -5 && calcul < 5){ drivetrain.setControl( drive.withRotationalRate(0));