Skip to main content

IMPULSE_AMPLITUDE

Constant IMPULSE_AMPLITUDE 

Source
pub const IMPULSE_AMPLITUDE: f32 = 0.95;
Expand description

Peak amplitude of the synthetic test impulse written to the output ring buffer.

A near-full-scale value is used so the echo stands well above the noise floor even after passing through lossy physical paths. The detection threshold is clamped to at most IMPULSE_AMPLITUDE * 0.5 so that a valid echo is always detectable.