We are currently trying to set up limelight to receive the tx ty ta tv values for our experimental project. Hardware manager is able to detect our limelight and the web UI is working fine. However, the values shown in the web UI are not being sent to our project.
We have brainstormed some potential issues but need some advice.
Not sure if we set the static IP configurations for the laptop and the roboRIO correctly. We changed the laptop’s IP address and then we were able to connect to the limelight without the USB, though.
Not sure what the networktable name should be in the actual code. We tried “limelight,” and “limelight-scorps,” which is what appears under “hostname” in hardware manager.
try using OutlineViewer (wpilib tool) on a laptop on the robot’s network. it should show all the data that NT is holding, so you can find what the NT name for your device is.
assuming that there is no radio in the picture: since the rio runs the nt server, make sure that the rio, laptop, and limelight are all on the same network (only the last octet in the ip should be different between them - subnet mask 255.255.255.0)
oops. needed to set the roborio ip from the options menu.
does this mean its connected to the limelight now? i see the tx ty values under subscribers. whatever that means.
radio is the wifi-appearing network that the laptop connects to right?
I’m connected to roborio through radio and i also set all 3 ip addresses equal to 10.69.34.2 (roborio, limelight, and laptop IP addresses). issue is i cant connect to the internet with the new IP, i have to go to control panel every time i want to change connections. Am i doing something wrong or inconvenienced?
we all start somewhere! what you just did is “isolate a possible source of error”, in this case you now know that the limelight is working and publishing the values under “/scorps/”
since the topics are prefixed with “scorps”, that would be your limelight name as it pertains to networktables. if it still isnt working, try to isolate another source of error. in this case, i would add a print statement before you send any values to your motors. that way, you can see if values are being updated and received by the robot code
I believe limelight is successfully publishing values to the “scorps” networktable. I made sure to use that name in the code. However, it still doesn’t seem to retrieve the values properly.
You do not need to configure it every time; it remembers the last settings used.
The key setting is “Mode”: If you’re connecting to robot code, it should be set to “Client (NT4)”. If you want it to run as a NetworkTables server (e.g. mocking the robot side), use “Server”. All the other settings can be left as default. When you set it as a client, it will have an option for a team number or IP address to connect to.