|
ESPectre SDK 2.8.0-280-gac7af68
Wi-Fi CSI motion sensing for ESP32 firmware
|
Startup threshold calibrator with a motion-first primary path and an internal quiet-first fallback. More...
#include <threshold.h>
Public Member Functions | |
| void | begin (uint16_t target_packets, bool gate_enabled) |
| void | observe (bool detector_ready, float motion_metric, uint16_t packet_weight=1U) |
| Consume one evaluated detector step representing one or more packets. | |
| bool | is_complete () const |
| True once motion-first succeeds early or the startup budget is spent. | |
| bool | is_successful () const |
| bool | gate_accepted () const |
| uint32_t | packet_count () const |
| uint16_t | target_packets () const |
| uint32_t | ready_packet_count () const |
| float | threshold_metric () const |
| Metric the threshold formula (x factor) is applied to. | |
| const char * | statistic_name () const |
| Statistic name for threshold logging. | |
| const char * | phase_label () const |
Startup threshold calibrator with a motion-first primary path and an internal quiet-first fallback.
The fallback keeps the existing gated ring of chunk maxima, but completion never exceeds the configured budget.
Definition at line 88 of file threshold.h.
|
inline |
Definition at line 90 of file threshold.h.
|
inline |
Consume one evaluated detector step representing one or more packets.
| detector_ready | Whether the detector metric window is full |
| motion_metric | Current detector motion metric |
| packet_weight | Number of processed packets represented by the metric |
Definition at line 128 of file threshold.h.
|
inline |
True once motion-first succeeds early or the startup budget is spent.
Definition at line 162 of file threshold.h.
|
inline |
Definition at line 166 of file threshold.h.
|
inline |
Definition at line 167 of file threshold.h.
|
inline |
Definition at line 168 of file threshold.h.
|
inline |
Definition at line 169 of file threshold.h.
|
inline |
Definition at line 170 of file threshold.h.
|
inline |
Metric the threshold formula (x factor) is applied to.
Definition at line 173 of file threshold.h.
|
inline |
Statistic name for threshold logging.
Definition at line 200 of file threshold.h.
|
inline |
Definition at line 219 of file threshold.h.