Skip to content

Commit

Permalink
fix latency calculation (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 authored Feb 10, 2024
1 parent 0eb0a4e commit 3738e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion photon-lib/py/photonlibpy/photonCamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def getLatestResult(self) -> PhotonPipelineResult:
retVal.populateFromPacket(pkt)
# NT4 allows us to correct the timestamp based on when the message was sent
retVal.setTimestampSeconds(
timestamp / 1e-6 - retVal.getLatencyMillis() / 1e-3
timestamp / 1e6 - retVal.getLatencyMillis() / 1e3
)
return retVal

Expand Down

0 comments on commit 3738e78

Please sign in to comment.