From 0a51ae802d87dba1f977c6956a71bcbf9339dc99 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 4 Jan 2023 20:54:44 -0800 Subject: [PATCH] Update SimPhotonCamera.java --- .../src/main/java/org/photonvision/SimPhotonCamera.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/photon-lib/src/main/java/org/photonvision/SimPhotonCamera.java b/photon-lib/src/main/java/org/photonvision/SimPhotonCamera.java index d6b84709d4..5d22d0a38c 100644 --- a/photon-lib/src/main/java/org/photonvision/SimPhotonCamera.java +++ b/photon-lib/src/main/java/org/photonvision/SimPhotonCamera.java @@ -36,6 +36,8 @@ public class SimPhotonCamera { NTTopicSet ts = new NTTopicSet(); PhotonPipelineResult latestResult; + private long heartbeatCounter = 0; + /** * Constructs a Simulated PhotonCamera from a root table. * @@ -134,6 +136,8 @@ public void submitProcessedFrame( ts.targetPoseEntry.set(poseData); } + ts.heartbeatPublisher.set(heartbeatCounter++); + latestResult = newResult; }