I have bought a 9 DoF Razor IMU (http://www.watterott.com/en/9-DoF-Razor-IMU) sensor. But using AHRS code, magnetometer HMC5883L gives strange values. Results of 360 rotation test and values from serial port are added as attachments. It seems like random values always received. Research suggests that magnetometer (HMC5883L) could be faulty.
Or it could be other problem?