cancel
Showing results for 
Search instead for 
Did you mean: 

MotionFx Magnetometer calibration issue

Anil3
Associate III

Hello Everyone!!!

I am using STM32F401CBU6 controller along with 2 sensors ie., (ISM330DLC & ISM303DAC) in my project. I have included motionfx library and getting Roll, Pitch, Yaw and Heading, but the heading is not getting calibrated and values are also changing continuously. i am using datalog fusion latest updated example code from X-cube mems1 with reference to UM2220.

I have tried to to rotate the  sensor in all the possible directions to get it calibrate but it is not at all getting calibrated.

Here is the data that i have logged, find the attached.

@Petr S  or anyone please have a look and help me out!!!!

regards,

ANIL.FX_Run.PNGInit.PNGMag_Calib.PNG

2 REPLIES 2
Petr S
ST Employee

Hello Anil,

You've shared only the timestamp and results in your datalog. I need all input data to compare the results and to be able to analyze whether the issue is in input data or in library usage.

Thanks,

Petr

Petr S
ST Employee

First please verify you have set correct device orientation in the code.