How can we receive data from "camtran" for the limelight?(Java)

We are currently trying to receive data from camtran in an array, but we only get 0 from the data.
This is our code written in robot periodic that only returns values of 0:

double[]camtran=NetworkTableInstance.getDefault().getTable(“limelight”).getEntry(“camtran”).getDoubleArray(new double[]{});

SmartDashboard.putNumberArray("array" , camtran);

Would anyone know how we could fix this?

Values of 0, or is always empty? If it’s always empty, is the team number setting on the Limelight set to match the RoboRIO team number, and the NT table name in the limelight set to “limelight”? You can check to see if the limelight values are in NetworkTables by using OutlineViewer on the desktop as well.

1 Like

Thank you for the help. We found out that the limelight was not set properly and fixed it.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.