Based on practical measurement of digital compass will exist error and need to be calibrated before use inevitably,this paper established the mathematical model of error according to the analysis of each error's effect to the measure result of digital compass sensor and reference documentation after analyzing the mechanism of error,and obtained the parametric model through the parameter transformation.Then,based on least square fitting method,this paper derives the ellipse fitting calibration algorithm and ellipsoid fitting calibration algorithm in detail,and designs the appropriate test which based on MATLAB,tests and verifies the correctness and effectiveness of calibration algorithms,and compares the differences between each algorithm through the comparative analysis of the test results. |