enableMagneticDeclinationCorrection

abstract fun enableMagneticDeclinationCorrection(lat: Float, lon: Float, alt: Float)

Enable magnetic declination correction for the given location

The fused sensors and magnetometer information will be corrected according to the magnetic declination on lat,lon,alt

Parameters

lat

latitude in degrees

lon

longitude in degrees

alt

altitude in meters