Skip to content

Commit

Permalink
Add external network devices
Browse files Browse the repository at this point in the history
Added ports to be forwarded for networking and accessing the Limelight and the Raspberry Pi web servers while tethered.
  • Loading branch information
garrettsummerfi3ld committed Mar 14, 2024
1 parent f2113ec commit a6476b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
package frc.robot;

import com.ctre.phoenix6.SignalLogger;

import edu.wpi.first.net.PortForwarder;
import edu.wpi.first.networktables.NetworkTableInstance;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.PowerDistribution.ModuleType;
Expand Down Expand Up @@ -114,6 +116,9 @@ public void robotInit() {
}
}

PortForwarder.add(5800, "photonvision-limelight", 5800);
PortForwarder.add(5800, "photonvision-rpi", 5800);

Logger.start();
System.out.println("[ROBOT] Logger started!");

Expand Down

0 comments on commit a6476b6

Please sign in to comment.