How does the Compass Calibration work?

Hi All,


I've searched around and can't quite find an answer online as to how the compass in iphones calibrate themselves?


From my understanding and the limited stuff I found online it seems like its just a fancy graphic and the rotations the phone goes through is just to dislodge the magnet internally (from a physical standpoint)... can someone please confirm if this is correct or is there something actually in the code that calibrates the device?


many thanks,

Syed

Well...to begin with, there are no moving parts, other than whatever limb you're using during the process.


Otherwise, it relies strictly on a disturbance in the force, aka the Hall Effect.


Are you asking so you can do the same in your app, or...?

Calibration, if needed, is done at the OS level and performed as you noted. Your app has no ability to dictate or otherwise participate in that process, which is why no code was offered.

How does the Compass Calibration work?
 
 
Q