Acknowledged

Fenix 7X - Sensor.Info.heading problem

Goodmorning, I have a bit of a head scratcher here.

I have 2 watches, Fenix 7X, and the venu sq2 music.

At the application start - the venu sq2 music operates "normally", and displays a compass heading updated by Sensor.getinfo(); and I look for heading.

The intention is infact to get the true heading in degrees, not the course over the ground. I then change the radians to degrees to Math.toDegrees(the value in here);

Now - the Venu2 SQ, displays the true degrees heading. When I rotate it changes through 360 degrees.

The Fenix 7X running the exact same code, and exact same application gives the wrong heading.

Rotating around does not result in 360 degrees of changes and neighther does  walking ( Ie, it appears to be sensing the compass, but the output is wrong, and the heading is more or less stable. If I tilt the watch, then the heading changes from about 130 degrees, towards 30. I thought this could be a compass sensor issue, but when I load up the compass widget in the exact same spot without moving, it works perfectly.

So it seems to be an incorrect feed of Sensor.Info.heading? 

Any ideas ?

Am I missing something here? I am positive this exact code worked on my previous fenix 5X, and fenix 6x Pro, and fenix 7X which was replaced with this unit. 

  • 		var info = Sensor.getInfo();
    		if(info.heading!=null && hwCompass) {
    			var deg=info.heading*(180.0/Math.PI);
    			if(deg<0) {deg=(360.0+deg);}
    			...
    			dc.drawText(x,hY,myColors.dFont,""+(deg).format("%d")+degree,Gfx.TEXT_JUSTIFY_CENTER|Gfx.TEXT_JUSTIFY_VCENTER);
    		}	

  • Your widget is working, the standard compass widget is working....... Is your code calling Sensr.Info.heading?   and then converting it using Math.todegrees() ?

  • Up to date Fw (specifically sensor hum) on the f7x?

    I seem to recall there was something odd when I did myABC widget based on the source of the data.  If you try it on the f7x, what does it show on the f7x?

    https://apps.garmin.com/en-US/apps/fdecbeaf-7d99-45e4-80e5-b5f9c2e92365

  • Yes.

    I open the compass widget, and the compass works perfectly, tracks N / S / W / E etc..... then I open my app, and the Sensor.info.heading attribute, is not giving me the same heading as the compass widget. I also tried moving, and that has no effect on the heading, but tilting the watch does. 

    I spun around in a circle with the watch flat, and the heading stayed almost exactly at 270 degrees plus or minus a couple ( due to the watch not being perfectly flat, as soon as I tilt the watch, then the heading changes. It seems as if on my watch the calculation for heading from the magentometer has labelled the axis incorrectly. Same app different watch works fine?   Compass app works fine on the fenix watch?  So the only culprit I can think of is Sensor.Info.heading  outputting a random number on the fenix compared with the venu ?

  • Another thing to note is heading vs bearing with bearing being in Activity.Info.