I’m running Limelight 1 on Java. I’m on the latest version (2019.2). I’m using the NetworkTables interface to pull values from the Limelight. I’ve been successful so far for all of these values except for the thoriz value. tvert works fine, as do all the others I’ve checked.
This is how I define my Network Table at the beginning of my robot program. I’ve included tvert here too.
NetworkTable limelightTable = NetworkTableInstance.getDefault().getTable("limelight");
NetworkTableEntry thoriz = limelightTable.getEntry("thoriz");
NetworkTableEntry tvert = limelightTable.getEntry("tvert");
double limelightTargetWidth, limelightHeight;
From here, I assign a variable to each of these values for quick reference:
limelightTargetWidth = thoriz.getDouble(0.0);
limelightHeight = tvert.getDouble(0.0);
And then from here, I put these values onto the Smart Dashboard. limelightHeight is coming up perfect, but limelightTargetWidth has been locked at 0.0 no matter what. What’s going on here? I’ve sent an email to Limelight about the issue, but I haven’t heard back quite yet. I’ll supply any more information if necessary.