Expand description
Real-time multi-stream time-grid alignment and windowed-sinc resampler
(docs/roadmap.md, step 18).
Two asynchronous ADCs without a shared hardware clock sample the same
physical signal with a worst-case sub-sample offset of T_s / 2 (up to
72 degrees at 100 Hz for 250 SPS streams). StreamAligner buffers each
stream in a bounded ring, tracks explicit and timestamp-inferred gaps, and
resamples all streams onto one strictly monotonic common time grid using
Blackman-windowed sinc fractional-delay interpolation with bounded
lookahead.
Structs§
- Aligned
Sample - One aligned sample on the common monotonic output grid.
- Stream
Aligner - Real-time multi-stream aligner and fractional-delay sinc resampler.
- Stream
Spec - Description of one input stream fed into
StreamAligner. - Sync
Config - Configuration for
StreamAlignerandSyncGroup.
Constants§
- DEFAULT_
GAP_ FACTOR - Default timestamp-jump multiple of
1 / nominal_sratetreated as a gap. - DEFAULT_
HALF_ WIDTH - Default half-width of the windowed-sinc kernel in source samples (
2 * 16 = 32taps). - DEFAULT_
MAX_ BUFFER_ SAMPLES - Default per-stream ring buffer capacity in samples.