Change path downloader to connect to real robot

Add explanation to path downloader
This commit is contained in:
nathanrsxtn
2022-03-04 00:02:34 -07:00
parent d6599dca70
commit 71e082e7bd
@@ -7,6 +7,10 @@ import java.util.Scanner;
import edu.wpi.first.networktables.EntryListenerFlags; import edu.wpi.first.networktables.EntryListenerFlags;
import edu.wpi.first.networktables.NetworkTableInstance; import edu.wpi.first.networktables.NetworkTableInstance;
/**
* Connects to the NetworkTables server and listens for changes to the "Recording" table. When a
* change is detected, it writes the value to a file.
*/
public class NetworkTablesDesktopClient { public class NetworkTablesDesktopClient {
public static void main(String[] args) { public static void main(String[] args) {
NetworkTableInstance instance = NetworkTableInstance.getDefault(); NetworkTableInstance instance = NetworkTableInstance.getDefault();
@@ -22,8 +26,7 @@ public class NetworkTablesDesktopClient {
exception.printStackTrace(); exception.printStackTrace();
} }
}, EntryListenerFlags.kNew); }, EntryListenerFlags.kNew);
// instance.startClientTeam(4388); instance.startClientTeam(4388);
instance.startClient("localhost");
instance.startDSClient(); instance.startDSClient();
try (Scanner scanner = new Scanner(System.in)) { try (Scanner scanner = new Scanner(System.in)) {
System.err.println("Press enter to stop..."); System.err.println("Press enter to stop...");