HMC5883L校准 参考 代码 this calibration will correct or compensate for the hard iron effects. hard iron effects are magnetic filed superimpositions on the earth's magnetic field that are fixed in magnitude and which do not depend on the orientation of the compass.