From f4575ef926b8884675520566161cc41a1e1aed42 Mon Sep 17 00:00:00 2001 From: Jack <85963782+JacksonElia@users.noreply.github.com> Date: Wed, 24 Jul 2024 11:26:34 -0400 Subject: [PATCH] using github editor makes me brain dead --- src/main/java/frc/robot/subsystems/vision/VisionSubsystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/subsystems/vision/VisionSubsystem.java b/src/main/java/frc/robot/subsystems/vision/VisionSubsystem.java index ad04475..b89aefe 100644 --- a/src/main/java/frc/robot/subsystems/vision/VisionSubsystem.java +++ b/src/main/java/frc/robot/subsystems/vision/VisionSubsystem.java @@ -221,7 +221,7 @@ public Pose2d getLastSeenPose() { * @param lastTY the last y offset from the limelight * @return the current x and y offset from the limelight as [currentTX, currentTY] */ - private void checkAndUpdatePose(int limelightNumber, double lastTX, double lastTY) { + private double[] checkAndUpdatePose(int limelightNumber, double lastTX, double lastTY) { // Syncronization block to ensure thread safety during the critical section where pose information is read and compared. // This helps prevents race conditions, where one limelight may be updating an object that another limelight is reading. // A race condition could cause unpredictable things to happen. Such as causing a limelight to be unable to reference an