Has anyone written or found any C# based classes for calibrating a magnetometer? Specifically the HMC5883L would be great. Just wanted to check before I start writing the tools to do it.
In the end, what I'm shooting for is to have a calibration mode on Pandora's Box where I can prompt the user to do the figure 8/S pattern like a cellphone in order to calibrate the magnetometer by determining the proper Bias and Scale based on any Hard Iron or Soft Iron that may be affecting it.
Anyone who's read about my Pandora's Box project may be wonder why I'm looking for such accuracy from the Magnetometer if I'm only calculating out the Magnitude of the EMF (Electromagnetic Field) and logging it. Well we've advanced the project to the point where we are using the Magnetometer to detect EM Flux (basically anything magnetic or electromagnetic passing through the magnetic field). We are then taking these readings and plotting the readings on a 3D Scatter Graph. The theory behind this is that it represents an energy or magnetic field change in 3D space. For the "Believers" it theoretically could represent either a spirit/ghost/entity or even a portal forming or manifesting in 3D space.
So, the more accurately the Magnetometer is calibrated, the more accurately we can determine where these things are occurring in reference to Pandora's Box. To give you an idea what we are doing, attached is a PDF of a scatter graph from a session. You can see there are 4 blobs of EM flux. We theorize these could be two people who were energetically communicating with two spirits that were in the room.