Tachometer range, redline, and the detector's limits

2026-09-14. Feature: realtime tachometer (feat/realtime-tacho). Follows the layout and visualization-library discussion.

Summary

With the gauge to be hand-drawn, it needs a scale, and until there are per-vehicle presets that scale has to suit every user. The question turned out to be less about what a motorcycle does than about what the estimator can say: autocorr.ts searches 8–100 pulses/s, which with REVS_PER_PULSE = 2 is 960–12,000 rpm, so the dial's honest span was already decided by a pair of constants nobody had looked at in product terms. Both ends were then re-examined. The ceiling is arbitrary and should follow the gauge rather than lead it — one MAX_RPM the detector derives its rate limit from, so the app can never compute a number it cannot draw. The floor turned out to be a floor of convenience: all seven ground-truth clips idle well above 960, but a Royal Enfield idles at 800–1,000, a mistuned bike hunting at 600–700 is precisely the case someone opens this app for, and a half-speed generator sits at 1,500 or 1,800. The floor moves to MIN_RATE = 5, or 600 rpm, which still holds five periods inside the 1 s analysis window.

Key conclusions

Open questions

Ideas to realize