Skip to content

Commit

Permalink
Port forward limelight and update to 2024.3.2
Browse files Browse the repository at this point in the history
!! Limelight port forward is for being able to access limelight config through USB tether
  • Loading branch information
bobopop787 committed Mar 23, 2024
1 parent 544471b commit a5e300d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2024.3.1"
id "edu.wpi.first.GradleRIO" version "2024.3.2"
}

java {
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

package frc.robot;

import edu.wpi.first.net.PortForwarder;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
Expand All @@ -28,6 +29,9 @@ public void robotInit() {
// Instantiate our RobotContainer. This will perform all our button bindings, and put our
// autonomous chooser on the dashboard.
robotContainer = new RobotContainer();
for(int port = 5800; port <= 5807; port++) {
PortForwarder.add(port, "limelight.local", port);
}
}

/**
Expand Down

0 comments on commit a5e300d

Please sign in to comment.