[photon-lib] Invalidate pose cache when setting referencePose (#2040)

This commit is contained in:
Kevin Cooney
2025-08-07 22:14:44 -07:00
committed by GitHub
parent a930852bee
commit ab854e91e5
8 changed files with 164 additions and 30 deletions

View File

@@ -229,7 +229,7 @@ class PhotonPoseEstimator:
self._poseCacheTimestampSeconds = -1.0
def _checkUpdate(self, oldObj, newObj) -> None:
if oldObj != newObj and oldObj is not None and oldObj is not newObj:
if oldObj != newObj:
self._invalidatePoseCache()
def addHeadingData(