From 046bb7a0e9b428447857e1dd6d0b02f58a0eb4ba Mon Sep 17 00:00:00 2001 From: Mihir Patankar Date: Wed, 10 Apr 2024 16:57:46 -0400 Subject: [PATCH] specify port forwarding ip --- src/main/java/frc/robot/Robot.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java index d0c0e1d..a0459d5 100644 --- a/src/main/java/frc/robot/Robot.java +++ b/src/main/java/frc/robot/Robot.java @@ -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());