Skip to content
This repository was archived by the owner on May 2, 2026. It is now read-only.
This repository was archived by the owner on May 2, 2026. It is now read-only.

Switch compass to use true north #34

@chrisduerr

Description

@chrisduerr

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions