From 378a553f4cb4887e6ec5f08afa247ea73a0713d5 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Thu, 25 Jan 2024 19:01:45 -0500 Subject: [PATCH 1/2] a --- src/main/{ => java/frc/robot}/LimelightHelpers.java | 0 src/main/java/frc/robot/subsystem/Limelight.java | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename src/main/{ => java/frc/robot}/LimelightHelpers.java (100%) diff --git a/src/main/LimelightHelpers.java b/src/main/java/frc/robot/LimelightHelpers.java similarity index 100% rename from src/main/LimelightHelpers.java rename to src/main/java/frc/robot/LimelightHelpers.java diff --git a/src/main/java/frc/robot/subsystem/Limelight.java b/src/main/java/frc/robot/subsystem/Limelight.java index ab82165..cd51219 100644 --- a/src/main/java/frc/robot/subsystem/Limelight.java +++ b/src/main/java/frc/robot/subsystem/Limelight.java @@ -5,11 +5,12 @@ package frc.robot.subsystem; import edu.wpi.first.wpilibj2.command.SubsystemBase; +import frc.robot.LimelightHelpers; public class Limelight extends SubsystemBase { /** Creates a new Limelight. */ public Limelight() { - + LimelightHelpers.getTV(getName()); } From 7d716d857411872717a250acd4dbda8168c1762f Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Thu, 25 Jan 2024 20:05:20 -0500 Subject: [PATCH 2/2] dfsg --- src/main/java/frc/robot/RobotContainer.java | 6 +++++- src/main/java/frc/robot/subsystem/Limelight.java | 11 +++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index b22c47b..7303389 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -45,7 +45,11 @@ public class RobotContainer { },drive)); } - private void configureBindings() {} + private void configureBindings() { + + + + } public Command getAutonomousCommand() { return Commands.print("No autonomous command configured"); diff --git a/src/main/java/frc/robot/subsystem/Limelight.java b/src/main/java/frc/robot/subsystem/Limelight.java index cd51219..e26d582 100644 --- a/src/main/java/frc/robot/subsystem/Limelight.java +++ b/src/main/java/frc/robot/subsystem/Limelight.java @@ -4,14 +4,21 @@ package frc.robot.subsystem; +import edu.wpi.first.networktables.NetworkTableInstance; import edu.wpi.first.wpilibj2.command.SubsystemBase; import frc.robot.LimelightHelpers; + public class Limelight extends SubsystemBase { /** Creates a new Limelight. */ public Limelight() { - LimelightHelpers.getTV(getName()); - } + + boolean tv = LimelightHelpers.getTV("No_name"); + + double tx = LimelightHelpers.getTX("No_name"); + double ty = LimelightHelpers.getTY("No_name"); + double ta = LimelightHelpers.getTA("No_name"); +} @Override