Rise
The Vieneo Province
Loading...
Searching...
No Matches
Telemetry::SnapshotChannel Class Reference

#include <TelemetrySnapshot.h>

Collaboration diagram for Telemetry::SnapshotChannel:
[legend]

Public Member Functions

 SnapshotChannel ()
void Configure (SequenceMode sequenceMode, const ChannelConfig &config)
void Reset (int identity, int reference, int parentSlot, bool requireLowBootstrapSequence)
Acceptance Push (MotionSnapshot snapshot, double receiptSeconds)
PresentationState Sample (double nowSeconds, double elapsedSeconds)
ChannelMetrics GetMetrics (double nowSeconds) const
bool HasSamples () const
std::size_t Depth () const
const MotionSnapshot & SnapshotAt (std::size_t logicalIndex) const

Private Member Functions

std::size_t PhysicalIndex (std::size_t logicalIndex) const
void ClearHistory ()
void RecordIncoming (double receiptSeconds)
void UpdateCadence (double rawIntervalSeconds)
void UpdateSourceCadence (double sourceIntervalSeconds)
void ResetSourceTiming ()
double InterpolationDelay () const
double ExtrapolationCap () const
PresentationState Evaluate (double presentationSeconds) const
PresentationState Interpolate (const MotionSnapshot &first, const MotionSnapshot &second, double amount) const
PresentationState Extrapolate (const MotionSnapshot &snapshot, double seconds) const
std::uint16_t ForwardDelta (std::uint16_t incoming) const
void AdvanceCorrection (double elapsedSeconds)

Private Attributes

std::array< MotionSnapshot, SnapshotCapacity > snapshots_ = {}
std::size_t head_ = 0
std::size_t count_ = 0
SequenceMode sequenceMode_ = SequenceMode::UShort
ChannelConfig config_
ChannelMetrics metrics_
bool requireLowBootstrapSequence_ = false
bool intervalInitialized_ = false
bool hasRawReceipt_ = false
double lastRawReceiptSeconds_ = 0.0
double packetWindowStartSeconds_ = 0.0
std::uint32_t packetWindowCount_ = 0
bool hasSourceObservation_ = false
bool sourceTimed_ = false
bool sourceIntervalInitialized_ = false
std::uint16_t lastObservedSampleTimeMs_ = 0
std::uint16_t lastObservedSourceRevision_ = 0
double sourceIntervalSeconds_ = 0.0
double sourcePhaseSeconds_ = 0.0
Vec3 correctionOffset_
Vec3 correctionVelocity_
PresentationState lastPresentation_
bool lastPresentationWasExtrapolated_ = false

Detailed Description

Definition at line 168 of file TelemetrySnapshot.h.

Constructor & Destructor Documentation

◆ SnapshotChannel()

Telemetry::SnapshotChannel::SnapshotChannel ( )
default

Member Function Documentation

◆ AdvanceCorrection()

void Telemetry::SnapshotChannel::AdvanceCorrection ( double elapsedSeconds)
private

Definition at line 662 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ ClearHistory()

void Telemetry::SnapshotChannel::ClearHistory ( )
private

Definition at line 266 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ Configure()

void Telemetry::SnapshotChannel::Configure ( SequenceMode sequenceMode,
const ChannelConfig & config )

Definition at line 230 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ Depth()

std::size_t Telemetry::SnapshotChannel::Depth ( ) const

Definition at line 707 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ Evaluate()

PresentationState Telemetry::SnapshotChannel::Evaluate ( double presentationSeconds) const
private

Definition at line 638 of file TelemetrySnapshot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Extrapolate()

PresentationState Telemetry::SnapshotChannel::Extrapolate ( const MotionSnapshot & snapshot,
double seconds ) const
private

Definition at line 607 of file TelemetrySnapshot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExtrapolationCap()

double Telemetry::SnapshotChannel::ExtrapolationCap ( ) const
private

Definition at line 563 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ ForwardDelta()

std::uint16_t Telemetry::SnapshotChannel::ForwardDelta ( std::uint16_t incoming) const
private

Definition at line 332 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ GetMetrics()

ChannelMetrics Telemetry::SnapshotChannel::GetMetrics ( double nowSeconds) const

Definition at line 695 of file TelemetrySnapshot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HasSamples()

bool Telemetry::SnapshotChannel::HasSamples ( ) const

Definition at line 706 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ Interpolate()

PresentationState Telemetry::SnapshotChannel::Interpolate ( const MotionSnapshot & first,
const MotionSnapshot & second,
double amount ) const
private

Definition at line 572 of file TelemetrySnapshot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InterpolationDelay()

double Telemetry::SnapshotChannel::InterpolationDelay ( ) const
private

Definition at line 544 of file TelemetrySnapshot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PhysicalIndex()

std::size_t Telemetry::SnapshotChannel::PhysicalIndex ( std::size_t logicalIndex) const
private

Definition at line 709 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ Push()

Acceptance Telemetry::SnapshotChannel::Push ( MotionSnapshot snapshot,
double receiptSeconds )

Definition at line 339 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ RecordIncoming()

void Telemetry::SnapshotChannel::RecordIncoming ( double receiptSeconds)
private

Definition at line 278 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ Reset()

void Telemetry::SnapshotChannel::Reset ( int identity,
int reference,
int parentSlot,
bool requireLowBootstrapSequence )

Definition at line 236 of file TelemetrySnapshot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResetSourceTiming()

void Telemetry::SnapshotChannel::ResetSourceTiming ( )
private

Definition at line 254 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

◆ Sample()

PresentationState Telemetry::SnapshotChannel::Sample ( double nowSeconds,
double elapsedSeconds )

Definition at line 680 of file TelemetrySnapshot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SnapshotAt()

const MotionSnapshot & Telemetry::SnapshotChannel::SnapshotAt ( std::size_t logicalIndex) const

Definition at line 714 of file TelemetrySnapshot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateCadence()

void Telemetry::SnapshotChannel::UpdateCadence ( double rawIntervalSeconds)
private

Definition at line 296 of file TelemetrySnapshot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateSourceCadence()

void Telemetry::SnapshotChannel::UpdateSourceCadence ( double sourceIntervalSeconds)
private

Definition at line 317 of file TelemetrySnapshot.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ config_

ChannelConfig Telemetry::SnapshotChannel::config_
private

Definition at line 201 of file TelemetrySnapshot.h.

◆ correctionOffset_

Vec3 Telemetry::SnapshotChannel::correctionOffset_
private

Definition at line 216 of file TelemetrySnapshot.h.

◆ correctionVelocity_

Vec3 Telemetry::SnapshotChannel::correctionVelocity_
private

Definition at line 217 of file TelemetrySnapshot.h.

◆ count_

std::size_t Telemetry::SnapshotChannel::count_ = 0
private

Definition at line 199 of file TelemetrySnapshot.h.

◆ hasRawReceipt_

bool Telemetry::SnapshotChannel::hasRawReceipt_ = false
private

Definition at line 205 of file TelemetrySnapshot.h.

◆ hasSourceObservation_

bool Telemetry::SnapshotChannel::hasSourceObservation_ = false
private

Definition at line 209 of file TelemetrySnapshot.h.

◆ head_

std::size_t Telemetry::SnapshotChannel::head_ = 0
private

Definition at line 198 of file TelemetrySnapshot.h.

◆ intervalInitialized_

bool Telemetry::SnapshotChannel::intervalInitialized_ = false
private

Definition at line 204 of file TelemetrySnapshot.h.

◆ lastObservedSampleTimeMs_

std::uint16_t Telemetry::SnapshotChannel::lastObservedSampleTimeMs_ = 0
private

Definition at line 212 of file TelemetrySnapshot.h.

◆ lastObservedSourceRevision_

std::uint16_t Telemetry::SnapshotChannel::lastObservedSourceRevision_ = 0
private

Definition at line 213 of file TelemetrySnapshot.h.

◆ lastPresentation_

PresentationState Telemetry::SnapshotChannel::lastPresentation_
private

Definition at line 218 of file TelemetrySnapshot.h.

◆ lastPresentationWasExtrapolated_

bool Telemetry::SnapshotChannel::lastPresentationWasExtrapolated_ = false
private

Definition at line 219 of file TelemetrySnapshot.h.

◆ lastRawReceiptSeconds_

double Telemetry::SnapshotChannel::lastRawReceiptSeconds_ = 0.0
private

Definition at line 206 of file TelemetrySnapshot.h.

◆ metrics_

ChannelMetrics Telemetry::SnapshotChannel::metrics_
private

Definition at line 202 of file TelemetrySnapshot.h.

◆ packetWindowCount_

std::uint32_t Telemetry::SnapshotChannel::packetWindowCount_ = 0
private

Definition at line 208 of file TelemetrySnapshot.h.

◆ packetWindowStartSeconds_

double Telemetry::SnapshotChannel::packetWindowStartSeconds_ = 0.0
private

Definition at line 207 of file TelemetrySnapshot.h.

◆ requireLowBootstrapSequence_

bool Telemetry::SnapshotChannel::requireLowBootstrapSequence_ = false
private

Definition at line 203 of file TelemetrySnapshot.h.

◆ sequenceMode_

SequenceMode Telemetry::SnapshotChannel::sequenceMode_ = SequenceMode::UShort
private

Definition at line 200 of file TelemetrySnapshot.h.

◆ snapshots_

std::array<MotionSnapshot, SnapshotCapacity> Telemetry::SnapshotChannel::snapshots_ = {}
private

Definition at line 197 of file TelemetrySnapshot.h.

◆ sourceIntervalInitialized_

bool Telemetry::SnapshotChannel::sourceIntervalInitialized_ = false
private

Definition at line 211 of file TelemetrySnapshot.h.

◆ sourceIntervalSeconds_

double Telemetry::SnapshotChannel::sourceIntervalSeconds_ = 0.0
private

Definition at line 214 of file TelemetrySnapshot.h.

◆ sourcePhaseSeconds_

double Telemetry::SnapshotChannel::sourcePhaseSeconds_ = 0.0
private

Definition at line 215 of file TelemetrySnapshot.h.

◆ sourceTimed_

bool Telemetry::SnapshotChannel::sourceTimed_ = false
private

Definition at line 210 of file TelemetrySnapshot.h.


The documentation for this class was generated from the following files: