Module driver

Module driver 

Source
Expand description

Coalescing a receiver’s sentence stream into one fix per cycle.

A receiver says what it knows across four or more sentences a second, each carrying a different part of the answer: position and date in RMC, altitude and satellite count in GGA, the solution’s dimension and dilution in GSA, visibility in GSV. Nothing upstream wants four partial answers a second, so Driver accumulates them and hands over one Fix per cycle.

RMC ends a cycle. It is the only sentence carrying a date, so it is the one that can establish what time it is, and cutting the cycle there means every emitted fix either has a usable instant or is honestly missing one. A receiver that emits RMC first rather than last simply attaches the previous second’s altitude to it, which is a second of staleness in a field that changes slowly.

Structs§

Driver
Byte stream in, one Fix per cycle out.
Fix
Everything one cycle of sentences said, in integers.

Enums§

FixQuality
The quality of a position solution.