Skip to main content

Module constants

Module constants 

Source
Expand description

Tuning constants for the round-trip latency measurement protocol.

All values here are deliberately centralised so that changing the measurement behaviour requires touching exactly one file.

Constantsยง

CALIBRATION_SAMPLES
Number of input samples collected during the ambient calibration phase.
GUARD_SAMPLES
Number of input samples to ignore immediately after emitting an impulse.
IMPULSE_AMPLITUDE
Peak amplitude of the synthetic test impulse written to the output ring buffer.
IMPULSE_COUNT
Number of impulse/echo cycles to run per measurement session.
INTER_IMPULSE_GAP
Minimum quiet time enforced between consecutive impulses.