2018-02-23 07:00 AM
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
2018-11-23 04:40 AM
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: