You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 2, 2026. It is now read-only.
Currently the compass reads data straight from iio-sensor-proxy. While this is easy, it does only provide a heading towards the magnetic north, which is significantly different from true north in many highly populated regions (like Quebec for example).
While an approximate accuracy is generally sufficient, a correction for the magnetic declination based on GPS position is likely sensible. Using a reasonable modern model to approximate for this should improve compass readings in relation to map tile orientation.
Currently the compass reads data straight from iio-sensor-proxy. While this is easy, it does only provide a heading towards the magnetic north, which is significantly different from true north in many highly populated regions (like Quebec for example).
While an approximate accuracy is generally sufficient, a correction for the magnetic declination based on GPS position is likely sensible. Using a reasonable modern model to approximate for this should improve compass readings in relation to map tile orientation.
See https://www.ncei.noaa.gov/products/world-magnetic-model (lists software implementations for the world magnetic model).