Team2168 / 2022_Main_Robot

Other
3 stars 0 forks source link

Limelight targeting for turret #5

Closed droydstix closed 2 years ago

droydstix commented 2 years ago

Added initial files I think are necessary for the limelight to be used in 2022. plz make sure i didnt screw up plox

jcorcoran commented 2 years ago

made some updates. Haven't tested against real hardware yet.

One thing I noticed is the isConnected method returns true because it's just a network tables entry.
It doesn't actually reflect if there's a device producing data on this field...

I'm pretty sure the old way it was working wouldn't actually catch the case where the camera went offline after it was on the network. So it was also a lie.

We will need to fix this logic. Can probably steal logic from another team if we look around