pub const SPEED_WINDOW_S: f64 = 0.5;Expand description
The span of the least-squares fit the top speed is the slope of, s: HPR Sim’s choice, long enough to average the barometer’s correlated noise down to a few meters a second, short enough to keep most of the speed’s peak.