Activity.Info.currentHeading provides random numbers on Edge530. On any other device I tried (Edge 820, Fenix 5 / 6) same code works fine.
It is not a problem of the device or the calibration as the heading on the map page is shown correctly.
Happens on all firmware and sdk versions.
The code is used in a data field and the problem occurs at all speeds.