added back NT flush

This commit is contained in:
Unknown
2019-12-22 10:27:50 +02:00
parent 0446d3e546
commit d8c027dae7

View File

@@ -40,6 +40,7 @@ public class VisionProcess {
// network table stuff
private final NetworkTable defaultTable;
private NetworkTableInstance tableInstance;
private NetworkTableEntry ntPipelineEntry;
public NetworkTableEntry ntDriverModeEntry;
private int ntDriveModeListenerID;
@@ -104,6 +105,7 @@ public class VisionProcess {
}
private void initNT(NetworkTable newTable) {
tableInstance = newTable.getInstance();
ntPipelineEntry = newTable.getEntry("pipeline");
ntDriverModeEntry = newTable.getEntry("driver_mode");
ntPitchEntry = newTable.getEntry("pitch");
@@ -217,6 +219,8 @@ public class VisionProcess {
ntLatencyEntry.setDouble(0.0);
ntAuxListEntry.setString("");
}
tableInstance.flush();
}
public void setVideoMode(VideoMode newMode) {