Skip to content

Commit

Permalink
fixed error from changing constants
Browse files Browse the repository at this point in the history
  • Loading branch information
rflood07 committed Jan 26, 2024
1 parent 948eb9e commit 002b652
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/frc/robot/subsystems/Limelight.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ public static void forceTrustAprilTag(boolean enabled) {
public static void useDetectorLimelight(boolean enabled) {
aprilTagEnabled = enabled;
}
public LimelightFiducialData getAprilTagValues(){
return new LimelightFiducialData(LimelightHelpers.getLatestResults(Vision.APRILTAG_LIMELIGHT_NAME).targetingResults, LimelightHelpers.getTV(Vision.APRILTAG_LIMELIGHT_NAME));
}
public LimelightValues getLimelightValues(String name) {
return new LimelightValues(LimelightHelpers.getLatestResults(name).targetingResults, LimelightHelpers.getTV(name));
}
Expand All @@ -62,7 +59,6 @@ public void vision_thread(){
}

public void periodic() {
if (aprilTagEnabled) Limelight.latestAprilTagValues = getAprilTagValues();
if (detectorEnabled) Limelight.latestDetectorValues = getNeuralDetectorValues();
}
}

0 comments on commit 002b652

Please sign in to comment.