As an user of a mechanical compass, I noticed that the heading that the magnetometer delivers, is often off by 45 degrees or more, although the calibration display did not appear in that cases.
If I test, or use my app outdoors, I ever calibrate the magnetometer when my compass view comes up. This works, it seems that this is necessary.
I don't want to show the users of my app an inaccurate heading, when it is possible to achieve an more or less accurate one, by performig a frequent calibration with the figure eight motion.
Does anybody know a solution to force the display of the magnetometer calibration view, every time my compass view comes up?
I searched all(?) posts here, only one person had a similar idea, but without an answer.
I'm afraid there's no way to do this - whilst the API allows you to dismiss the calibration view (using the dismissHeadingCalibrationDisplay
call) to prevent it from interrupting your app's interface, there's no way to force a calibration to start. I'd suggest filing a feature request with Apple if you think it's something that might be useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With