Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios magnetometer: force display of calibration view

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.

like image 721
AlexWien Avatar asked Feb 23 '13 00:02

AlexWien


1 Answers

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.

like image 165
lxt Avatar answered Sep 28 '22 12:09

lxt