Report cpp usage (#1045)

This commit is contained in:
Sriman Achanta
2023-12-16 15:26:00 -05:00
committed by GitHub
parent cba4db0bce
commit 6b8882fe53
4 changed files with 21 additions and 3 deletions

View File

@@ -205,6 +205,7 @@ class PhotonCamera {
private:
units::second_t lastVersionCheckTime = 0_s;
inline static bool VERSION_CHECK_ENABLED = true;
inline static int InstanceCount = 0;
void VerifyVersion();
};

View File

@@ -231,6 +231,8 @@ class PhotonPoseEstimator {
units::second_t poseCacheTimestamp;
inline static int InstanceCount = 0;
inline void InvalidatePoseCache() { poseCacheTimestamp = -1_s; }
std::optional<EstimatedRobotPose> Update(