From f68f177e79c7c6c08e645bb81f5d3c42c08bf833 Mon Sep 17 00:00:00 2001 From: TheMagneticDude <110270128+TheMagneticDude@users.noreply.github.com> Date: Mon, 29 Jan 2024 19:24:30 -0500 Subject: [PATCH] Obloberated April Tags Obloberated April Tags --- .../robot/subsystems/LimelightSubsystem.java | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/java/frc/robot/subsystems/LimelightSubsystem.java b/src/main/java/frc/robot/subsystems/LimelightSubsystem.java index 59cf4c8..3fac571 100644 --- a/src/main/java/frc/robot/subsystems/LimelightSubsystem.java +++ b/src/main/java/frc/robot/subsystems/LimelightSubsystem.java @@ -14,11 +14,9 @@ public class LimelightSubsystem extends SubsystemBase { /** Creates a new ExampleSubsystem. */ private final ShuffleboardTab m_tab = Shuffleboard.getTab("Limelight"); - public LimelightSubsystem() {} + + public LimelightSubsystem() { - @Override - public void periodic() { - // This method will be called once per scheduler run NetworkTable table = NetworkTableInstance.getDefault().getTable("limelight"); table.getEntry("pipeline").setNumber(2); NetworkTableEntry tx = table.getEntry("tx"); @@ -34,7 +32,16 @@ public void periodic() { //NetworkTableEntry AprilTagID = table.getEntry("tid"); System.out.println("LIMELIGHT SUBSYSTEM"); - m_tab.addNumber("AprilTag ID: ", this::getAprilTagID); + m_tab.addNumber("AprilTag ID: " + this.toString(), this::getAprilTagID); + m_tab.addNumber("Tag tx", this::getTx); + m_tab.addNumber("Tag ty", this::getTy); + + } + + @Override + public void periodic() { + // This method will be called once per scheduler run + } public double getAprilTagID(){