mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-23 01:21:40 +00:00
Paranoia test TSP client (#1844)
## Description Added paranoia checks to satisfy @Gold872 ## Meta Merge checklist: - [x] Pull Request title is [short, imperative summary](https://cbea.ms/git-commit/) of proposed changes - [x] The description documents the _what_ and _why_ - [ ] If this PR changes behavior or adds a feature, user documentation is updated - [ ] If this PR touches photon-serde, all messages have been regenerated and hashes have not changed unexpectedly - [ ] If this PR touches configuration, this is backwards compatible with settings back to v2024.3.1 - [x] If this PR addresses a bug, a regression test for it is added
This commit is contained in:
@@ -96,6 +96,10 @@ class TimeSyncClient {
|
||||
void Stop();
|
||||
int64_t GetOffset();
|
||||
Metadata GetMetadata();
|
||||
|
||||
// public for testability
|
||||
void UpdateStatistics(uint64_t pong_local_time, wpi::tsp::TspPing ping,
|
||||
wpi::tsp::TspPong pong);
|
||||
};
|
||||
|
||||
} // namespace tsp
|
||||
|
||||
Reference in New Issue
Block a user