ESPectre SDK 2.8.0-280-gac7af68
Wi-Fi CSI motion sensing for ESP32 firmware
Loading...
Searching...
No Matches
threshold.h File Reference
#include <algorithm>
#include <cmath>
#include <cstdint>

Go to the source code of this file.

Classes

class  espectre::StartupThresholdCalibrator
 Startup threshold calibrator with a motion-first primary path and an internal quiet-first fallback. More...

Namespaces

namespace  espectre

Functions

bool espectre::is_valid_threshold (float threshold, float min_threshold, float max_threshold)
 Validate threshold value against finite/range constraints.
float espectre::clamp_threshold (float threshold, float min_threshold, float max_threshold)
 Clamp threshold to [min, max] and recover non-finite values.

Variables

constexpr float espectre::SEGMENTATION_DEFAULT_THRESHOLD = 1.0f
constexpr float espectre::SEGMENTATION_MIN_THRESHOLD = 1e-9f
constexpr float espectre::SEGMENTATION_MAX_THRESHOLD = 10.0f
constexpr float espectre::DEFAULT_ADAPTIVE_FACTOR = 1.3f
constexpr uint8_t espectre::STARTUP_GATE_CHUNKS = 6
constexpr float espectre::STARTUP_GATE_SPREAD_RATIO = 1.10f
constexpr float espectre::STARTUP_GATE_ANCHOR_RATIO = 1.5f
constexpr uint8_t espectre::STARTUP_MOTION_CHUNK_SIZE = 25
constexpr uint8_t espectre::STARTUP_MOTION_MIN_QUIET_CHUNKS = 2
constexpr uint8_t espectre::STARTUP_MOTION_CONFIRM_CHUNKS = 2
constexpr uint8_t espectre::STARTUP_POST_MOTION_QUIET_CHUNKS = 2
constexpr float espectre::STARTUP_QUIET_STABILITY_RATIO = 1.20f
constexpr float espectre::STARTUP_MOTION_TRIGGER_RATIO = 1.80f
constexpr float espectre::STARTUP_QUIET_RETURN_RATIO = 1.25f
constexpr float espectre::STARTUP_MOTION_GAP_RATIO = 1.35f
constexpr float espectre::STARTUP_NO_MOTION_FALLBACK_MARGIN = 1.03f
constexpr uint8_t espectre::STARTUP_MOTION_MAX_LEVELS = 40