.algorithm_id = 0x15F20002, \
}; \
.logging = {0}, \
.args = \
{ \
.moving_for = moving_for_, \
.initial_threshold_ug = initial_threshold_ug_, \
.continue_threshold_ug = continue_threshold_ug_, \
}, \
}; \
static struct algorithm_movement_threshold_data name##_data; \
static struct algorithm_runner_algorithm name = { \
.config = &name##_config, \
.arguments = &name##_default_args, \
.runtime_state = &name##_data, \
}
@ KV_KEY_ALG_MOVEMENT_THRESHOLD_ARGS_V2
Configuration for the 'Movement Threshold' algorithm.
Definition kv_types.h:644
@ INFUSE_ZBUS_CHAN_IMU_ACC_MAG
Data type: imu_magnitude_array.
Definition channels.h:55
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.
Definition movement_threshold.h:36
Configuration for the 'Movement Threshold' algorithm.
Definition kv_types.h:498
Statically define an instance of the movement threshold algorithm.