Add protobuf publish setting slider (#1075)

Allows logging software and live data view to see results. Also removes the requirement for AScope to keep up with the packet serde schema and instead just use the Protobuf descriptor.
This commit is contained in:
Sriman Achanta
2023-12-31 00:14:21 -05:00
committed by GitHub
parent e3eff8731f
commit 2ecd988628
41 changed files with 1630 additions and 41 deletions

View File

@@ -44,7 +44,7 @@ class PhotonPipelineResult {
* @param latency The latency in the pipeline.
* @param targets The list of targets identified by the pipeline.
*/
PhotonPipelineResult(units::second_t latency,
PhotonPipelineResult(units::millisecond_t latency,
std::span<const PhotonTrackedTarget> targets);
/**
@@ -53,7 +53,7 @@ class PhotonPipelineResult {
* @param targets The list of targets identified by the pipeline.
* @param multitagResult The multitarget result
*/
PhotonPipelineResult(units::second_t latency,
PhotonPipelineResult(units::millisecond_t latency,
std::span<const PhotonTrackedTarget> targets,
MultiTargetPNPResult multitagResult);
@@ -81,7 +81,7 @@ class PhotonPipelineResult {
* Returns the latency in the pipeline.
* @return The latency in the pipeline.
*/
units::second_t GetLatency() const { return latency; }
units::millisecond_t GetLatency() const { return latency; }
/**
* Returns the estimated time the frame was taken,
@@ -125,7 +125,7 @@ class PhotonPipelineResult {
friend Packet& operator<<(Packet& packet, const PhotonPipelineResult& result);
friend Packet& operator>>(Packet& packet, PhotonPipelineResult& result);
units::second_t latency = 0_s;
units::millisecond_t latency = 0_s;
units::second_t timestamp = -1_s;
wpi::SmallVector<PhotonTrackedTarget, 10> targets;
MultiTargetPNPResult multitagResult;