vibe code the initial impl

This commit is contained in:
2026-10-13 19:47:46 -05:00
parent 7da1c2119d
commit 7862a09858
39 changed files with 2867 additions and 157 deletions
+9
View File
@@ -0,0 +1,9 @@
# Host test (optional, no ESP-IDF needed)
Compiles the real `main/fingerprint.c` and `main/detector.c` on your PC with a stub FFT and checks
(1) C-vs-Python fingerprint parity on `test_vector.h`, (2) silence/NaN safety, (3) the N-of-M + cooldown state machine.
python tools/make_template.py --buzz your.wav # writes main/test_vector.h
cd tools/host_test
gcc -Wall -I stubs -iquote ../../main host_test.c ../../main/fingerprint.c ../../main/detector.c -lm -o host_test
./host_test