Skip to content

Commit

Permalink
specify port forwarding ip
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatankar6 committed Apr 10, 2024
1 parent 767481e commit 046bb7a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,10 @@ public Robot() {
SignalLogger.enableAutoLogging(false);
switch (Constants.kCurrentMode) {
case kReal:
if (RobotBase.isSimulation()) {
System.out.println("Wrong robot mode.");
System.exit(1);
}
if (RobotBase.isSimulation()) throw new RuntimeException("Wrong robot mode.");
Logger.addDataReceiver(new WPILOGWriter("/home/lvuser/logs"));
Logger.addDataReceiver(new NT4Publisher());
PortForwarder.add(5800, "photonvision.local", 5800);
PortForwarder.add(5800, "10.49.9.17", 5800);
break;
case kSim:
Logger.addDataReceiver(new WPILOGWriter());
Expand Down

0 comments on commit 046bb7a

Please sign in to comment.