Relative Content

Tag Archive for pythoneigenvaluesvdmagnetometer

Problem with calibrating 3-axis magnetometer (ellipsoid fitting)

I have a problem regarding fitting an ellipsoid to calibrate a 3-axis magnetometer. I can translate and rotate the matrix correctly, but scaling is challenging. Right now, it only seems to scale correctly in the x-axis (ellipsoid is between -1 and 1), but the y and z are way too high (ellipsoid is between -130000 and 130000). I do not know how to fix this, maybe I am missing something. Here is my code: