fix latency calculation (#1227)

This commit is contained in:
Chris Gerth
2024-02-09 16:45:38 -08:00
committed by GitHub
parent 0eb0a4e3c5
commit 3738e7821b

View File

@@ -90,7 +90,7 @@ class PhotonCamera:
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