From ca1beba816c1f1bef6b07055080de3f0c6a28538 Mon Sep 17 00:00:00 2001 From: ruv Date: Sun, 15 Mar 2026 11:45:32 -0400 Subject: [PATCH] =?UTF-8?q?fix(firmware):=20Kconfig=20EDGE=5FFALL=5FTHRESH?= =?UTF-8?q?=20default=202000=E2=86=9215000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- firmware/esp32-csi-node/main/Kconfig.projbuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/esp32-csi-node/main/Kconfig.projbuild b/firmware/esp32-csi-node/main/Kconfig.projbuild index d78d2260..899b6b4d 100644 --- a/firmware/esp32-csi-node/main/Kconfig.projbuild +++ b/firmware/esp32-csi-node/main/Kconfig.projbuild @@ -68,10 +68,13 @@ menu "Edge Intelligence (ADR-039)" config EDGE_FALL_THRESH int "Fall detection threshold (x1000)" - default 2000 + default 15000 range 100 50000 help 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. Default 2000 = 2.0 rad/s^2.