Skip to content

Commit 159b848

Browse files
authored
[python] Fix PhotonPipelineMetadata constructor arg order (#1698)
Relates to #1578
1 parent 53e6890 commit 159b848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

photon-lib/py/photonlibpy/simulation/photonCameraSim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ def distance(target: VisionTargetSim):
423423
now_micros = wpilib.Timer.getFPGATimestamp() * 1e6
424424
return PhotonPipelineResult(
425425
metadata=PhotonPipelineMetadata(
426-
self.heartbeatCounter,
427426
int(now_micros - latency * 1e6),
428427
int(now_micros),
428+
self.heartbeatCounter,
429429
# Pretend like we heard a pong recently
430430
int(np.random.uniform(950, 1050)),
431431
),

0 commit comments

Comments
 (0)