Skip to main content

MEDIAN_WINDOW_S

Constant MEDIAN_WINDOW_S 

Source
pub const MEDIAN_WINDOW_S: f64 = 0.3;
Expand description

The running median’s span, s: 0.3 s, Debrief’s despiking window. Debrief runs a Hampel filter over it (crate::filter::hampel, threshold 4); hpr takes the plain median (threshold 0). On the public Pnut log Debrief ships, the ejection charge’s pulse peaks at 1,028 ft, against the 1,009 ft apogee the logger states. The samples around the pulse, a dip before it and a lasting drop after it, widen its window’s spread until the Hampel filter keeps it, and an apogee read after it is the pulse. After the median it reads 1,010 ft. The median removes any pulse up to half its window wide, and reads a noise-free peak bent by gravity alone no more than peak_bound_m low, 0.077 m at 20 Hz. The Pnut numbers are checked only where the log has been fetched into refs/ (it isn’t committed); CI checks an invented log of the same shape.