Btw, there is a post somewhere on the forum which gives code which calibrates the magnetometer by taking maximal and minimal values of coordinats, which allows for at least centering the ellipse at the origin. I imagine this is a very good approximation of a solution, and is quite good for many applications. Fitting the data on a sphere would be even better though :D
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Btw, there is a post somewhere on the forum which gives code which calibrates the magnetometer by taking maximal and minimal values of coordinats, which allows for at least centering the ellipse at the origin. I imagine this is a very good approximation of a solution, and is quite good for many applications. Fitting the data on a sphere would be even better though :D