航向计算的原理不依赖于使用的磁力计,因此LSM9DS0和LSM9DS1之间不应有任何区别。
只有当传感器处于水平位置时,才能使用您使用的简单公式。任何倾斜都会产生误差。您可以沿Z轴在几圈内记录磁力计X,Y轴数据。如果硬铁补偿正确完成,则应创建圆心,中心位于[0,0]。
可能还会出现软铁错误,因此它将是椭圆形而不是圆形,但如果失真不大,则公式应该仍然有效。
如果你想测量地球磁场的范围是12高斯相当高,我会用4高斯范围代替。
以上来自于谷歌翻译
以下为原文
The principle for heading calculation is not dependent on the used magnetometer, so there should't be any difference between LSM9DS0 and LSM9DS1.
The simple formula which you are using can be used only if the sensor is horizontal position. Any tilt will generate error.Can you please log magnetometer X,Y axis data during several turns along Z axis. If the hard-iron compensation is done properly it should created circle with center in [0,0].
There will be probably also soft iron error so it will be ellipse instead of circle, but if the distortion won't be big the formula should work anyway.
If you want to measure earth magnetic field the range 12 Gauss is quite high, I would use 4 Gauss range instead.
航向计算的原理不依赖于使用的磁力计,因此LSM9DS0和LSM9DS1之间不应有任何区别。
只有当传感器处于水平位置时,才能使用您使用的简单公式。任何倾斜都会产生误差。您可以沿Z轴在几圈内记录磁力计X,Y轴数据。如果硬铁补偿正确完成,则应创建圆心,中心位于[0,0]。
可能还会出现软铁错误,因此它将是椭圆形而不是圆形,但如果失真不大,则公式应该仍然有效。
如果你想测量地球磁场的范围是12高斯相当高,我会用4高斯范围代替。
以上来自于谷歌翻译
以下为原文
The principle for heading calculation is not dependent on the used magnetometer, so there should't be any difference between LSM9DS0 and LSM9DS1.
The simple formula which you are using can be used only if the sensor is horizontal position. Any tilt will generate error.Can you please log magnetometer X,Y axis data during several turns along Z axis. If the hard-iron compensation is done properly it should created circle with center in [0,0].
There will be probably also soft iron error so it will be ellipse instead of circle, but if the distortion won't be big the formula should work anyway.
If you want to measure earth magnetic field the range 12 Gauss is quite high, I would use 4 Gauss range instead.
举报