QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NMEA::NavigationEpochAssembler Class Reference

#include <NMEANavigationEpoch.h>

Public Member Functions

void reset ()
 
std::optional< NavigationUpdate > ingest (const Sentence &sentence, uint64_t receivedAtUs)
 
std::optional< NavigationEpoch > expireUntimedMetadata (uint64_t nowUs)
 

Static Public Attributes

static constexpr size_t MAX_RETAINED_EPOCHS = 32
 
static constexpr std::chrono::microseconds METADATA_MAX_AGE = std::chrono::seconds(2)
 Receipt age beyond which retained metadata no longer joins a new sentence of its epoch.
 

Detailed Description

Definition at line 64 of file NMEANavigationEpoch.h.

Member Function Documentation

◆ expireUntimedMetadata()

std::optional< NavigationEpoch > NMEA::NavigationEpochAssembler::expireUntimedMetadata ( uint64_t  nowUs)

Definition at line 71 of file NMEANavigationEpoch.cc.

References METADATA_MAX_AGE, and MonotonicClock::withinAge().

Referenced by GPSNMEAStream::flush().

◆ ingest()

◆ reset()

void NMEA::NavigationEpochAssembler::reset ( )

Definition at line 34 of file NMEANavigationEpoch.cc.

Referenced by GPSNMEAStream::reset().

Member Data Documentation

◆ MAX_RETAINED_EPOCHS

constexpr size_t NMEA::NavigationEpochAssembler::MAX_RETAINED_EPOCHS = 32
staticconstexpr

Definition at line 67 of file NMEANavigationEpoch.h.

◆ METADATA_MAX_AGE

constexpr std::chrono::microseconds NMEA::NavigationEpochAssembler::METADATA_MAX_AGE = std::chrono::seconds(2)
staticconstexpr

Receipt age beyond which retained metadata no longer joins a new sentence of its epoch.

Definition at line 69 of file NMEANavigationEpoch.h.

Referenced by expireUntimedMetadata().


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