LimeLight Help

Trying to get values from the LimeLight NetworkTables.

Copied the LimelightHelpers.java file to Robot folder.

We are tracking the target and seeing the TX and TY values on the lime light page but unable to get them to post to SmartDashboard…

Running the following code in the periodic method of the subsystem. I am figuring the name of the limelight is wrong, but we dont have anything in the host name so I think this is right, but obviously something is wrong.

tx = LimelightHelpers.getTX(“limelight”);
SmartDashboard.putNumber(“tx”, tx);

I haven’t used LimelightHelpers before but this worked for me

double tx = NetworkTableInstance.getDefault().getTable("limelight").getEntry("tx").getDouble(0.0);

tried that as well and it wouldn’t give me the data

If you made a limelight subsystem, did you instantiate an object of the limelight subsystem?

Yup sure did

could you post your limelight subsystem file?

Ok so the solution is a bit embarrassing, but hopefully it will help someone. Our new programing students missed setting the team number with the imaging tool for the roborio after burning the image to the sd card. It had not shown as a problem as we had only been connected via usb cable to this point…

1 Like

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