From 3738e7821b768c1fb3c04e4d56fe8346f9945a54 Mon Sep 17 00:00:00 2001 From: Chris Gerth Date: Fri, 9 Feb 2024 16:45:38 -0800 Subject: [PATCH] fix latency calculation (#1227) --- photon-lib/py/photonlibpy/photonCamera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photon-lib/py/photonlibpy/photonCamera.py b/photon-lib/py/photonlibpy/photonCamera.py index 0f0e8bf77..8be306aa5 100644 --- a/photon-lib/py/photonlibpy/photonCamera.py +++ b/photon-lib/py/photonlibpy/photonCamera.py @@ -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