19 static constexpr std::chrono::microseconds
MAX_AGE = std::chrono::milliseconds(200);
41 void _orderOldestFirst();
44 std::array<std::optional<Epoch>, 2> _epochs;
45 std::optional<uint32_t> _lastPublished;
Epoch * find(uint32_t tow, GPSDecodeContext &context)
The epoch at tow, started now when new; nullptr for a time of week already published or too old.
void end(uint32_t tow, GPSDecodeContext &context)
Publishes the epoch at tow and the ones before it.
void expire(GPSDecodeContext &context)
Publishes epochs older than MAX_AGE.
static constexpr std::chrono::microseconds MAX_AGE
u-blox receivers over UBX: CFG-VALSET configuration from protocol 27, CFG-MSG and CFG-TMODE3 before i...
Decoded navigation plus whether the producer accepted its velocity solution.
bool hasPvt
NAV-PVT arrived; an epoch without it has no position to publish.
GPSDecodedPosition position