mirror of
https://github.com/ruvnet/RuView.git
synced 2026-10-18 21:00:22 -05:00
The ESP32 edge-vitals packet (0xC511_0002) carries a raw i8 RSSI byte with no "valid" flag. When the edge pipeline hasn't sampled a real reading yet, it has been observed sending near-zero sentinel values (-1, -2 dBm) that are physically implausible for a WiFi link. These were pushed straight into the node's rssi_history and the room's fused mean_rssi, producing a one-tick reading of ~-2 dBm on node 3 while its own CSI path simultaneously showed a real ~-50 dBm signal. Add an is_plausible_rssi() guard (mirroring the existing update_csi_fps_ema() plausibility-filter pattern) so an implausible RSSI falls back to the node's last known-good reading instead of overwriting it.