Skip to content

Commit

Permalink
A result will now only be considered the latest result if its timesta…
Browse files Browse the repository at this point in the history
…mp is greater than the latest timestamp, instead of if it is not equal to the latest timestamp.
  • Loading branch information
aidnem committed Nov 23, 2024
1 parent 70bf040 commit 143feeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision/src/main/java/coppercore/vision/CameraIOPhoton.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 143feeb

Please sign in to comment.