Skip to content

Create a test harness that can communicate with Limelight and print detection data.#41

Open
matthewcwheeler wants to merge 6 commits intomainfrom
mattwheeler/vision-assist-with-test-harness
Open

Create a test harness that can communicate with Limelight and print detection data.#41
matthewcwheeler wants to merge 6 commits intomainfrom
mattwheeler/vision-assist-with-test-harness

Conversation

@matthewcwheeler
Copy link
Contributor

@matthewcwheeler matthewcwheeler commented Jan 3, 2026

A quick test harness to verify that the detection model is running properly.

Notes:

  • The VisionSubsystem.java class is not (yet) used by the test harness. It's there to give an example of how you can wrap the raw camera output into a class that can be used elsewhere in the code without having to reimplement all of the calculations every place you want to use the camera.
  • For the test harness to work properly, you need to set up your local machine with its own "LAN" that mimics the FRC field. To do this, you'll need to set up a static IP with the address "10.95.84.X" where "X" can be pretty much anything except 11 (5 is what was used when setting this up). You'll need to make sure that the Limelight is set up to communicate with this static IP (In the "Custom NT Server IP" section of the "Settings" tab).
  • Because of the model, you need to hook the camera to a 12V power source (USB-C is not powerful enough).
  • Remember you should be able to go to "limelight.local:5801," or "10.95.84.11:5801" on your browser to help with your development.
  • The change to the build.gradle file is intended for dev/test purposes only. It allows the test harness to be easily run in an appropriate environment. Don't check it into the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant