matlab中mag,Magnetometer calibration coefficients

Because a magnetometer usually rotates through a full range of 3-D rotation, the ideal

measurements from a magnetometer should form a perfect sphere centered at the origin if the

magnetic field is unperturbed. However, due to distorting magnetic fields from the sensor

circuit board and the surrounding environment, the spherical magnetic measurements can be

perturbed. In general, two effects exist.

The soft-iron effect is described as the distortion of the ellipsoid from a sphere

and the tilt of the ellipsoid, as shown in the left figure. This effect is caused by

disturbances that influence the magnetic field but may not generate their own magnetic

field. For example, metals such as nickel and iron can cause this kind of distortion.

The hard-iron effect is described as the offset of the ellipsoid center from the

origin. This effect is produced by materials that exhibit a constant, additive field

to the earth's magnetic field. This constant additive offset is in addition to the

soft-iron effect as shown in the figure on the right.

430411b8cc6221e566992ea4db1dd751.png

The underlying algorithm in magcal determines the best-fit

ellipsoid to the raw sensor readings and attempts to "invert" the ellipsoid to produce a

sphere. The goal is to generate a correction matrix A to account for

the soft-iron effect and a vector b to account for the hard-iron

effect. The three output options, 'eye', 'diag' and 'sym' correspond to three

parameter-solving algorithms, and the 'auto' option chooses among these three options to

give the best fit.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值