|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Movement detection based on static threshold with trailing window. More...
#include <stdint.h>#include <zephyr/toolchain.h>#include <infuse/algorithm_runner/runner.h>#include <infuse/zbus/channels.h>Go to the source code of this file.
Data Structures | |
| struct | algorithm_movement_threshold_data |
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 algorithm_runner_common_config *common, const void *args, void *data) |
| Algorithm implementation, see algorithm_run_fn. | |
Movement detection based on static threshold with trailing window.
SPDX-License-Identifier: FSL-1.1-ALv2
Only explicitly controls INFUSE_STATE_DEVICE_STOPPED_MOVING and INFUSE_STATE_DEVICE_STARTED_MOVING, not the corresponding INFUSE_STATE_DEVICE_STATIONARY and INFUSE_STATE_DEVICE_STOPPED_MOVING states.