Ticket Created
over 3 years ago

JAZZ-2848

Transfered

Activity.Info.currentHeading provides random numbers on Edge530

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.

Parents
  • I think if you use info.track rather than info.currentHeading you will get what you want.  I tried this on my 830 today and it worked well.  I suspect Garmin has changed currentHeading to be the direct compass output on newer devices and I further suspect that the compass is useless if you are moving and bouncing around such as riding a bike.  Note also that info.track seems to always return 0.0 in the simulator.  So be sure to try it on your device.

Comment
  • I think if you use info.track rather than info.currentHeading you will get what you want.  I tried this on my 830 today and it worked well.  I suspect Garmin has changed currentHeading to be the direct compass output on newer devices and I further suspect that the compass is useless if you are moving and bouncing around such as riding a bike.  Note also that info.track seems to always return 0.0 in the simulator.  So be sure to try it on your device.

Children
No Data