From 143feeb4b205fcd4de7142efdf1a878340e33e62 Mon Sep 17 00:00:00 2001 From: aidnem <> Date: Sat, 23 Nov 2024 15:58:49 -0500 Subject: [PATCH] A result will now only be considered the latest result if its timestamp is greater than the latest timestamp, instead of if it is not equal to the latest timestamp. --- vision/src/main/java/coppercore/vision/CameraIOPhoton.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vision/src/main/java/coppercore/vision/CameraIOPhoton.java b/vision/src/main/java/coppercore/vision/CameraIOPhoton.java index 7978692..da313b8 100644 --- a/vision/src/main/java/coppercore/vision/CameraIOPhoton.java +++ b/vision/src/main/java/coppercore/vision/CameraIOPhoton.java @@ -63,7 +63,7 @@ public void updateInputs(CameraIOInputs inputs) { inputs.connected = camera.isConnected(); PhotonPipelineResult result = camera.getLatestResult(); - if (result.getTimestampSeconds() == latestTimestampSeconds) { + if (result.getTimestampSeconds() <= latestTimestampSeconds) { inputs.isNewMeasurement = false; inputs.wasAccepted = false; return;