Imu BNO086

I run an IMU BNO086.
Within a minute the yaw differs once ±150degres.
I use the example Geomagnetic to Euler out of the sparkfun library.
I need the heading info. Is this known or is the imu damaged?
Please advise.
Thanks
Bernhard Graf

Most likely, the magnetometer is not properly calibrated. Magnetometers do not work “out of the box” as compasses.

Check the documentation for that particular IMU regarding calibration procedures: https://www.mouser.com/pdfDocs/BNO080-BNO085-Sesnor-Calibration-Procedure.pdf

Thanks for the information!
I have 055 and 085 of Adafruit in use and also some sparkfun RTK and IMUs. For the 086 I did the calibration accordingly and put in the setup parts of example 20 calibration.
When i operate my mobile robot with 086 it seens that the orientation is ok, but suddenly the 086 delivers a single wrong yaw.
What can this be?
Talking with you I know you are a friend of the ICM 20948, but there activating the dmp in line 29 is confusing. Can you explain me what to do for activating dmp?
Thanks a lot and have agreat day!

Mit freundlichem Gruß

Dr. Bernhard Graf

Mobil 01713610219