mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
Change path downloader to connect to real robot
Add explanation to path downloader
This commit is contained in:
@@ -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...");
|
||||||
|
|||||||
Reference in New Issue
Block a user