ESPectre SDK
2.8.0-280-gac7af68
Wi-Fi CSI motion sensing for ESP32 firmware
Toggle main menu visibility
Loading...
Searching...
No Matches
detector_types.h
Go to the documentation of this file.
1
/*
2
* ESPectre - Detector Public Types
3
*
4
* Stable detector state and probability-threshold constants shared by the
5
* core-only and full-runtime SDK surfaces.
6
*
7
* Author: Francesco Pace <francesco.pace@gmail.com>
8
* SPDX-License-Identifier: GPL-3.0-only
9
* Commercial licensing available under separate agreement; see LICENSING.md.
10
*/
11
#pragma once
12
13
namespace
espectre
{
14
15
/** Debounced detector state. */
16
enum class
MotionState
{
17
IDLE
,
18
MOTION
,
19
};
20
21
constexpr
float
LIGHTWEIGHT_DEFAULT_THRESHOLD
= 0.6621854538596202f;
22
constexpr
float
LIGHTWEIGHT_MIN_THRESHOLD
= 0.0f;
23
constexpr
float
LIGHTWEIGHT_MAX_THRESHOLD
= 1.0f;
24
constexpr
float
LIGHTWEIGHT_STARTUP_THRESHOLD_FACTOR
= 1.0f;
25
26
constexpr
float
HIGH_ACCURACY_DEFAULT_THRESHOLD
= 0.5f;
27
constexpr
float
HIGH_ACCURACY_MIN_THRESHOLD
= 0.0f;
28
constexpr
float
HIGH_ACCURACY_MAX_THRESHOLD
= 1.0f;
29
constexpr
float
HIGH_ACCURACY_METRIC_SCALE
= 1.0f;
30
31
}
// namespace espectre
espectre
Definition
espectre_sdk_version.h:62
espectre::LIGHTWEIGHT_DEFAULT_THRESHOLD
constexpr float LIGHTWEIGHT_DEFAULT_THRESHOLD
Definition
detector_types.h:21
espectre::EspectreOtaState::IDLE
@ IDLE
Definition
espectre_protocol.h:217
espectre::LIGHTWEIGHT_STARTUP_THRESHOLD_FACTOR
constexpr float LIGHTWEIGHT_STARTUP_THRESHOLD_FACTOR
Definition
detector_types.h:24
espectre::MotionState
MotionState
Debounced detector state.
Definition
detector_types.h:16
espectre::MotionState::MOTION
@ MOTION
Definition
detector_types.h:18
espectre::HIGH_ACCURACY_MAX_THRESHOLD
constexpr float HIGH_ACCURACY_MAX_THRESHOLD
Definition
detector_types.h:28
espectre::HIGH_ACCURACY_MIN_THRESHOLD
constexpr float HIGH_ACCURACY_MIN_THRESHOLD
Definition
detector_types.h:27
espectre::HIGH_ACCURACY_DEFAULT_THRESHOLD
constexpr float HIGH_ACCURACY_DEFAULT_THRESHOLD
Definition
detector_types.h:26
espectre::LIGHTWEIGHT_MAX_THRESHOLD
constexpr float LIGHTWEIGHT_MAX_THRESHOLD
Definition
detector_types.h:23
espectre::LIGHTWEIGHT_MIN_THRESHOLD
constexpr float LIGHTWEIGHT_MIN_THRESHOLD
Definition
detector_types.h:22
espectre::HIGH_ACCURACY_METRIC_SCALE
constexpr float HIGH_ACCURACY_METRIC_SCALE
Definition
detector_types.h:29
src
cpp
core
detector_types.h
Generated by
1.17.0