XPLMDegTrueToDegMagnetic
XPLM_API float XPLMDegTrueToDegMagnetic(
float headingDegreesTrue);
Converts a heading in degrees relative to true north into a value relative to magnetic north at the user’s current location.