photonvision
photonvision copied to clipboard
Photonlibpy - Best Target Function
A rather simple getBestTarget()
function for a pipeline result.
The idea to use .get(0)
comes from the Java version of the library. This implies the assumption that target packets are sent in order.
I do not have access to a robot at the moment (thus it's a draft), but this matches the behavior of the Java client, so I'm confident it should work.
Vlad & the 5113 software team.