cancel
Showing results for 
Search instead for 
Did you mean: 

AppMEMS#7b: The X-CUBE-MEMS1 libraries in detail - MotionAT functions

Eleon BORLINI
ST Employee

--- More detail on MotionAT library ---

The library acquires data from the accelerometer and provides information about the number of active seconds (how long the user was active) with the wearable device.

The central functionthat executes the AT algorithm is the following one:

void MotionAT_Update(MAT_input_t *data_in, MAT_output_t *data_out)

where *data_in parameter is a pointer to a structure with input data of type MAT_input_t (including AccX which is the accelerometer sensor value in X axis in g; AccY which is the accelerometer sensor value in Y axis in g and AccZ which is the accelerometer sensor value in Z axis in g); *data_out parameter is a pointer to a structure with output data (that is active equal to 1 if the user was active during the last algorithm run, otherwise it is equal to 0)

See below an example of the output of MotionAT library in Unicleo-GUI framework �?�

1 REPLY 1
Eleon BORLINI
ST Employee

0690X000009YS9tQAG.png