From fcac077def5428d03df7ebe38df76a15dfdd40a2 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Wed, 7 Feb 2024 18:35:35 -0500 Subject: [PATCH] subsystem limelight --- src/main/java/frc/robot/subsystem/Limelight.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/java/frc/robot/subsystem/Limelight.java b/src/main/java/frc/robot/subsystem/Limelight.java index 49291b3..97831af 100644 --- a/src/main/java/frc/robot/subsystem/Limelight.java +++ b/src/main/java/frc/robot/subsystem/Limelight.java @@ -9,8 +9,6 @@ import edu.wpi.first.networktables.NetworkTable; import edu.wpi.first.networktables.NetworkTableEntry; import edu.wpi.first.networktables.NetworkTableInstance; import edu.wpi.first.wpilibj2.command.SubsystemBase; -import frc.robot.LimelightHelpers; - public class Limelight extends SubsystemBase { @@ -22,10 +20,11 @@ public class Limelight extends SubsystemBase { NetworkTableEntry pipeline = table.getEntry("pipeline"); NetworkTableEntry tv = table.getEntry("tv"); NetworkTableEntry camMode = table.getEntry("camMode"); + NetworkTableEntry tid = table.getEntry("tid"); - /** Creates a new Limelight. */ public Limelight() { + } public double getx(){ @@ -40,11 +39,14 @@ public class Limelight extends SubsystemBase { public boolean getv(){ return tv.getBoolean(false); } - public double getpipeline(){ - return pipeline.getDouble(0); + public void setpipeline(){ + pipeline.setNumber(0); } - public double getcamMode(){ - return camMode.getDouble(0); + public void setcamMode(){ + camMode.setNumber(0); + } + public double getTid(){ + return tid.getDouble(0); } @Override