stationary_windowed API
More...
stationary_windowed API
◆ ALGORITHM_STATIONARY_WINDOWED_DEFINE
#define ALGORITHM_STATIONARY_WINDOWED_DEFINE |
( |
| name, |
|
|
| loggers_, |
|
|
| tdfs, |
|
|
| window_seconds_, |
|
|
| threshold_ug ) |
#include <infuse/algorithm_runner/algorithms/stationary_windowed.h>
Value:
.common = \
{ \
.algorithm_id = 0x15F20000, \
.logging = \
{ \
.loggers = loggers_, \
.tdf_mask = tdfs, \
}, \
}, \
.window_seconds = window_seconds_, \
.std_dev_threshold_ug = threshold_ug, \
}; \
.config = &name##_config.
common, \
.runtime_state = &name##_data, \
}
@ INFUSE_ZBUS_CHAN_IMU_ACC_MAG
Data type: imu_magnitude_array.
Definition channels.h:54
void algorithm_stationary_windowed_fn(const struct zbus_channel *chan, const void *config, void *data)
Algorithm implementation, see algorithm_run_fn.
Definition stationary_windowed.h:37
struct algorithm_runner_common_config common
Definition stationary_windowed.h:39
Definition stationary_windowed.h:46
Statically define an instance of the stationary windows algorithm.
- Parameters
-
name | Variable name base |
loggers_ | TDF loggers to log outputs to |
tdfs | TDFs to log |
window_seconds_ | Duration of the time windows to examine in seconds |
threshold_ug | Standard deviation threshold in micro-g, above this value the device is moving. |
◆ anonymous enum
◆ algorithm_stationary_windowed_fn()
void algorithm_stationary_windowed_fn |
( |
const struct zbus_channel * | chan, |
|
|
const void * | config, |
|
|
void * | data ) |