fix(firmware): Kconfig EDGE_FALL_THRESH default 2000→15000

The nvs_config.c fallback (15.0f) was never reached because
Kconfig always defines CONFIG_EDGE_FALL_THRESH. The Kconfig
default was still 2000 (=2.0 rad/s²), causing false fall alerts
on real WiFi CSI data (7 alerts in 45s).

Fixed to 15000 (=15.0 rad/s²). Verified on real ESP32-S3 hardware
with live WiFi CSI: 0 false fall alerts in 60s / 1300+ frames.

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
ruv 2026-03-15 11:45:32 -04:00
parent 48be117594
commit ca1beba816
1 changed files with 4 additions and 1 deletions

View File

@ -68,10 +68,13 @@ menu "Edge Intelligence (ADR-039)"
config EDGE_FALL_THRESH config EDGE_FALL_THRESH
int "Fall detection threshold (x1000)" int "Fall detection threshold (x1000)"
default 2000 default 15000
range 100 50000 range 100 50000
help help
Phase acceleration threshold for fall detection. Phase acceleration threshold for fall detection.
Value is divided by 1000 to get rad/s². Default 15000 = 15.0 rad/s².
Raise to reduce false positives in high-traffic environments.
Normal walking produces accelerations of 2-5 rad/s².
Stored as integer; divided by 1000 at runtime. Stored as integer; divided by 1000 at runtime.
Default 2000 = 2.0 rad/s^2. Default 2000 = 2.0 rad/s^2.