From a20b72e4602495f01bef8246cb67107b821aac82 Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Wed, 21 Feb 2024 19:59:21 -0500 Subject: [PATCH] d --- src/main/java/frc/robot/subsystem/Limelight.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/subsystem/Limelight.java b/src/main/java/frc/robot/subsystem/Limelight.java index c4441bd..e30cae4 100644 --- a/src/main/java/frc/robot/subsystem/Limelight.java +++ b/src/main/java/frc/robot/subsystem/Limelight.java @@ -4,6 +4,7 @@ package frc.robot.subsystem; +import edu.wpi.first.net.PortForwarder; import edu.wpi.first.networktables.NetworkTable; import edu.wpi.first.networktables.NetworkTableEntry; import edu.wpi.first.networktables.NetworkTableInstance; @@ -22,7 +23,9 @@ public class Limelight extends SubsystemBase { /** Creates a new Limelight. */ public Limelight() { - + for (int port = 5800; port <= 5807; port++) { + PortForwarder.add(port, "limelight.local", port); +} } public double getx(){