Skip to main content
Visitor II
February 19, 2018
Question

What is sample Period in MotionFX_Manager.h library?

  • February 19, 2018
  • 1 reply
  • 766 views
Posted on February 19, 2018 at 06:16

Hey,

I am running a sample code for STM32L476RG-SensorTile. In the MotionFX_Manager.h library I found : #define SAMPLE_PERIOD       ((uint8_t)10)   /* [ms] */.

Can any one please tell me what is this about? Is it the about the number data packets that we are sending?

Please see the image attached below.

    This topic has been closed for replies.

    1 reply

    ST Employee
    February 20, 2018
    Posted on February 20, 2018 at 14:25

    The define is used in function related to magnetometer calibration which is part of the MotionFX library.

    But basically, the data are read from the sensor and passed to the sensor fusion library each 10ms, which means 100Hz update rate.