PhotonVision / photonvision

PhotonVision is the free, fast, and easy-to-use computer vision solution for the FIRST Robotics Competition.
https://photonvision.org
GNU General Public License v3.0
274 stars 190 forks source link

PhotonPoseEstimator doesn't update lastPose on its own #1206

Closed ArchdukeTim closed 8 months ago

ArchdukeTim commented 9 months ago

The CLOSEST_TO_LAST_POSE strategy is documented as

Choose the Pose which is closest to the last pose calculated.

PhotonPoseEstimator clears lastPose if the estimated pose is empty but does not set lastPose otherwise, rendering this strategy useless.