cancel
Showing results for 
Search instead for 
Did you mean: 

MotionFX blocked in MFX_MAGCALUNKNOWN state

Gabriel Gabor
Associate II
Posted on February 23, 2018 at 16:00

Hi,

I'm trying to use the MotionFX library with the LSM9DS1. I can initialise the library and I start to send updates using the MotionFX_MagCal_run method then I get the params with MotionFX_MagCal_getParams but the cal_quality is always 0, I tried multiple times. Also, I double checked that I set the sample time and timestamp correctly.

Not sure what I'm missing, is there any way to debug the behaviour of the library?

Regards,

Gabriel

10 REPLIES 10
kkia
Associate II

Ow I just go the answer!

make sure of three notes:

1- calibration must be run for at least 5 seconds. before this time you always get the default values.

2- you should duplicate the heap and stack size in the assembly file, for the library probably uses dynamic memory.

3- you can use HAL_GetTick as the timestamp.

also take a look at this topic:

https://community.st.com/s/question/0D50X00009XkWyASAV/motionmc-calibration-fails-all-params-have-default-value