Skip to main content

Module sync

Module sync 

Source
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§

AlignedSample
One aligned sample on the common monotonic output grid.
StreamAligner
Real-time multi-stream aligner and fractional-delay sinc resampler.
StreamSpec
Description of one input stream fed into StreamAligner.
SyncConfig
Configuration for StreamAligner and SyncGroup.

Constants§

DEFAULT_GAP_FACTOR
Default timestamp-jump multiple of 1 / nominal_srate treated as a gap.
DEFAULT_HALF_WIDTH
Default half-width of the windowed-sinc kernel in source samples (2 * 16 = 32 taps).
DEFAULT_MAX_BUFFER_SAMPLES
Default per-stream ring buffer capacity in samples.