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:
Matt Morley
2025-03-24 22:32:29 -04:00
committed by GitHub
parent 0ef7c803f9
commit 97dbcdd252
3 changed files with 143 additions and 21 deletions

View File

@@ -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