This is some basic code we have been trying. We are still getting the same error. Any time we try to access the NetworkTables class we receive the error.
Code:
NetworkTable server;
public Vision() {
server = NetworkTable.getTable("SmartDashboard");
}
public void printImageCount() {
try {
double imageCount = server.getNumber("IMAGE_COUNT", 0.0);
System.out.println(imageCount);
}
catch(TableKeyNotDefinedException exp) {
}
}