Update SimPhotonCamera.java (#703)

This commit is contained in:
Matt
2023-01-05 04:43:23 -08:00
committed by GitHub
parent 326701b74f
commit e68e6f3181

View File

@@ -36,6 +36,8 @@ import org.photonvision.targeting.PhotonTrackedTarget;
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 class SimPhotonCamera {
ts.targetPoseEntry.set(poseData);
}
ts.heartbeatPublisher.set(heartbeatCounter++);
latestResult = newResult;
}