Coding Two Limelights

Our team is planning on using two limelights, one for shooting and one for intaking this year. I have both limelights connected to a network switch and I have two separate limelight objects created in robot container. My question is how our code is supposed to differentiate between which limelight is which to control the shooter or intake. For example, when I am running a shooter command that uses limelight, how do I know that it is not getting the data from the Limelight on the intake?

You would go to the Limelight dashboard and assign them different names (which would change their network tables table name). Then, assuming you have a wrapper class for the Limelight, you would create two different Limelights with the new names you assigned.

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