Magnetometer Calibration

Use when you must estimate the in-flight magnetometer bias vector with scalar-checking batch least squares: expand |m_k - b|^2 = B_k^2 over the measured body-frame samples m_k and the known field magnitudes B_k, build the 4-unknown rows [-2 m_k, 1] with right sides B_k^2 - |m_k|^2, solve the normal equations A^T A x = A^T y by partial-pivot Gaussian elimination, and recover the bias from the first three unknowns with the fourth unknown |b|^2 as the consistency check. Produces the bias vector, the consistency gap against the recovered bias norm, the max fit residual, and the calibrated samples that gate attitude determination. Trigger: magnetometer calibration, scalar checking, in-flight bias estimation, hard-iron offset, field magnitude consistency.

ashfordeOU e33d28a 3 files · 35.7 KB Updated

File contents

ashfordeOU/aero-agent-skills/tree/main/skills/space-systems/adcs/magnetometer-calibration commit e33d28a110

Frequently asked questions

npx skillmds@latest add ashfordeou/magnetometer-calibration