Yes, you could do a tilt compensation, cf. eg. https://www.instructables.com/id/Tilt-Compensated-Compass/ , which is imho a better idea than to incorporate the spritit level.
And then there is the declination and inclination deviation of magnetic and geographic north, cf. https://www.ngdc.noaa.gov/geomag/WMM/
Just submitted a PR for a tilt compensated compass. Seems pretty stable with respect to roll and pitch if you are conscientious about calibration. If anyone is eager to try it before it appears on the official app loader, it is available now at https://jeffmer.github.io/JeffsBangleAppsDev/.
@jeffmer Thanks, tried your app and it seems to work much better and reliable than the default compass app.
© Espruino, powered by microcosm.
Report a problem