|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Movement Threshold API. More...
Macros | |
| #define | ALGORITHM_MOVEMENT_THRESHOLD_DEFINE(name, moving_for_, initial_threshold_ug_, continue_threshold_ug_) |
| Statically define an instance of the movement threshold algorithm. | |
Functions | |
| void | algorithm_movement_threshold_fn (const struct zbus_channel *chan, const struct infuse_algorithm *algorithm, const void *args, void *data) |
| Algorithm implementation, see algorithm_run_fn. | |
Movement Threshold API.
| #define ALGORITHM_MOVEMENT_THRESHOLD_DEFINE | ( | name, | |
| moving_for_, | |||
| initial_threshold_ug_, | |||
| continue_threshold_ug_ ) |
Statically define an instance of the movement threshold algorithm.
| name | Variable name base |
| moving_for_ | How long the moving state is set for |
| initial_threshold_ug_ | Magnitude this far away from 1G triggers the moving state |
| continue_threshold_ug_ | Magnitude this far away from 1G continues the moving state |
| void algorithm_movement_threshold_fn | ( | const struct zbus_channel * | chan, |
| const struct infuse_algorithm * | algorithm, | ||
| const void * | args, | ||
| void * | data ) |
Algorithm implementation, see algorithm_run_fn.