mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-01 02:41:42 +00:00
fix latency calculation (#1227)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user