mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-11-24 16:17:22 +00:00
Replace the fixed 20 ms limit on SignalConditioner.batch_size_ms and max_batch_latency_ms. A configured batch is accepted if it is no longer than the automatic one (min(10 ms, observable_interval_ms)), or if the buffer it needs (whole batches, with room for one on top of the largest reader window) fits the alignment budget: the signal time channels can trail the receiver clock before the observables miss epochs. Batches are also limited to 4 MiB, since GNU Radio allocates two of them on each side of the batching block. At observable_interval_ms=20 and 4 MSps gr_complex this allows about 90 ms instead of 20 ms. At 5 ms it now rejects batches that the old limit let through. In automatic mode, an explicit max_batch_latency_ms sets the batch size, so that batch gets the same check. Defaults are unchanged.