A Two-step Autonomous Compensation Algorithm for Measuring Error of Electronic Compass
A two-step autonomous compensation algorithm based on Genetic Algorithm is proposed to furtherly cali-brate the error of the electronic compass aiming to improve the compensation result of the classical ellipsoid fitting model.Firstly,based on the orientation principle and the error model of electronic compass,the algorithm and the limitations of the ellipsoid fitting compensation model are analyzed.The genetic algorithm is introduced to fit the non-linear residual error and the misalignment error angle is estimated.The experimental results show that all pa-rameters of the error model can be effectively estimated by the two-step autonomous compensation algorithm,and the residual error of the ellipsoid fitting correction algorithm is eliminated considerably.When the pitch angle is 30° and the roll angle is 30°,the two-step autonomous compensation algorithm reduces the maximum heading an-gle error from 1.9° to 0.49°,and the RMSE from±1.19° to±0.19°,combined with the ellipsoid fitting algorithm.
electronic compassconstrained least squaresellipsoid fittingGenetic Algorithmerror correction