Quote:
Originally Posted by StaleyRobotics
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) {
}
}
|
Is this in your robot program? If so, why are you getting the SmartDashboard table manually and not using the SmartDashboard.* functions?