|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Tilt algorithm. More...
Macros | |
| #define | ALGORITHM_TILT_DEFINE(name, loggers_, tdfs, filter_alpha, one_g_valid_percent) |
| Statically define an instance of the tilt algorithm. | |
Enumerations | |
| enum | { ALGORITHM_TILT_LOG_ANGLE = BIT(0) } |
Functions | |
| void | algorithm_tilt_fn (const struct zbus_channel *chan, const struct infuse_algorithm *algorithm, const void *args, void *data) |
| Algorithm implementation, see algorithm_run_fn. | |
Tilt algorithm.
| #define ALGORITHM_TILT_DEFINE | ( | name, | |
| loggers_, | |||
| tdfs, | |||
| filter_alpha, | |||
| one_g_valid_percent ) |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/algorithm_runner/algorithms/tilt.h>
Statically define an instance of the tilt algorithm.
| name | Variable name base |
| loggers_ | TDF loggers to log outputs to |
| tdfs | TDFs to log |
| filter_alpha | IIR filter alpha parameter |
| one_g_valid_percent | Accelerometer magnitude must be with N percent of 1G to use for tilt |
| anonymous enum |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/algorithm_runner/algorithms/tilt.h>
| Enumerator | |
|---|---|
| ALGORITHM_TILT_LOG_ANGLE | |
| void algorithm_tilt_fn | ( | const struct zbus_channel * | chan, |
| const struct infuse_algorithm * | algorithm, | ||
| const void * | args, | ||
| void * | data ) |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/algorithm_runner/algorithms/tilt.h>
Algorithm implementation, see algorithm_run_fn.