static void name##_wrapper(const struct zbus_channel *chan, \
{ \
static struct algorithm_stationary_windowed_data data; \
algorithm_stationary_windowed_fn(chan, algorithm, args, &data); \
} \
.logging = \
{ \
.loggers = loggers_, \
.tdf_mask = tdfs, \
}, \
.args = \
{ \
.window_seconds = window_seconds_, \
.std_dev_threshold_ug = threshold_ug, \
}, \
}; \
static const struct infuse_algorithm name = { \
.fn = name##_wrapper, \
.arguments = &name##_default_args, \
.arguments_size = sizeof(struct kv_alg_stationary_windowed_args), \
}
@ KV_KEY_ALG_STATIONARY_WINDOWED_ARGS
Configuration for the 'Stationary Windowed' algorithm.
Definition kv_types.h:733
@ INFUSE_ZBUS_CHAN_IMU_ACC_MAG
Data type: imu_magnitude_array.
Definition types.h:56
Algorithm definition.
Definition implementation.h:47
uint32_t algorithm_id
Unique algorithm identifier.
Definition implementation.h:55
Configuration for the 'Stationary Windowed' algorithm.
Definition kv_types.h:554
Statically define an instance of the stationary windows algorithm.