Skip to content

Commit

Permalink
Obloberated April Tags
Browse files Browse the repository at this point in the history
Obloberated April Tags
  • Loading branch information
TheMagneticDude committed Jan 30, 2024
1 parent 67df7fc commit f68f177
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/main/java/frc/robot/subsystems/LimelightSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);

Check warning on line 35 in src/main/java/frc/robot/subsystems/LimelightSubsystem.java

View workflow job for this annotation

GitHub Actions / qodana

Call to default 'toString()'

Call to default 'toString()' on `this`
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(){
Expand Down

0 comments on commit f68f177

Please sign in to comment.