[python] Fix PhotonPipelineMetadata constructor arg order (#1698)

Relates to https://github.com/PhotonVision/photonvision/pull/1578
This commit is contained in:
mythgarr
2025-01-11 22:29:19 -06:00
committed by GitHub
parent 53e6890f20
commit 159b848234

View File

@@ -423,9 +423,9 @@ class PhotonCameraSim:
now_micros = wpilib.Timer.getFPGATimestamp() * 1e6
return PhotonPipelineResult(
metadata=PhotonPipelineMetadata(
self.heartbeatCounter,
int(now_micros - latency * 1e6),
int(now_micros),
self.heartbeatCounter,
# Pretend like we heard a pong recently
int(np.random.uniform(950, 1050)),
),