Skip to main content
ST Employee
June 28, 2019
Question

AppMEMS#6b: The X-CUBE-MEMS1 libraries in detail - MotionAR functions

  • June 28, 2019
  • 1 reply
  • 547 views

--- More detail about MotionAR library ---

The library is based on accelerometer data only, and requires a data sampling frequency of 16 Hz., and can to distinguish among the following activities: stationary, walking, fast walking, jogging, biking, driving.

The central function that performs the activity recognition is this one:

void MotionAR_Update (MAC_input_t *data_in, MAR_output_t *data_out, long int

timestamp)

*data_in parameter is a pointer to a structure with input data, *data_out parameter is a pointer to enum with the items described in the previous post and timestamp variable is a relative time for actual sample in ms.

See below the detailed output of the activity recognition of MotionAR algorithm! �?�

    This topic has been closed for replies.

    1 reply

    ST Employee
    June 28, 2019

    Here below a table describing the algorithm performances:

    0690X000009XiQ5QAK.png