cancel
Showing results for 
Search instead for 
Did you mean: 

What is sample Period in MotionFX_Manager.h library?

yashasvi khatavkar
Associate
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.

1 REPLY 1
Miroslav BATEK
ST Employee
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.