Skip to content

Commit 3738e78

Browse files
authored
fix latency calculation (#1227)
1 parent 0eb0a4e commit 3738e78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

photon-lib/py/photonlibpy/photonCamera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def getLatestResult(self) -> PhotonPipelineResult:
9090
retVal.populateFromPacket(pkt)
9191
# NT4 allows us to correct the timestamp based on when the message was sent
9292
retVal.setTimestampSeconds(
93-
timestamp / 1e-6 - retVal.getLatencyMillis() / 1e-3
93+
timestamp / 1e6 - retVal.getLatencyMillis() / 1e3
9494
)
9595
return retVal
9696

0 commit comments

Comments
 (0)