photonvision icon indicating copy to clipboard operation
photonvision copied to clipboard

Photonlibpy - Best Target Function

Open drvladb opened this issue 5 months ago • 3 comments

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.

drvladb avatar Feb 05 '24 21:02 drvladb