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(){