Widget: Compass



https://apps.garmin.com/en-US/apps/7115691d-7456-43ef-92bd-92a5885f16c7

A simple compass widget that looks eerily similar to the built-in compass on the Fenix3. On devices with a magnetic compass, the compass will report your heading (the direction you are facing). For devices without device support, the compass will display your heading (the direction you are travelling).

*Note*: I understand there is a 10 second timeout on the vivoactive, and this makes the widget less useful than I'd like. I've created an app version that is available here. https://apps.garmin.com/en-US/apps/663c7106-883c-4fbc-9a89-e01d9e9983ac

Revision History

1.0.5
* Center text displayed when not able to acquire a compass heading or GPS position.

1.0.4
* Removed debug tracing.

1.0.3
* Resolve issue with compass heading not being displayed correctly on the vivoactive.

1.0.1
* Resolve issue with serialization of application properties.

1.0.0
* Initial Revision
  • Okay, thanks Jim. I'll try to figure out if there is a workaround. If I find one I'll post to your thread above.
  • Former Member
    Former Member over 10 years ago
    I've worked around this using the resource system. I added this to the resource files for all devices except the vivoactive.

    <strings>
    <string id="Magnetometer" />
    </strings>


    Then I use this code to pick the implementation...

    // pick a compass implementation
    if (Rez.Strings has :Magnetometer) {
    _impl = new MagneticCompassImpl();
    }
    else {
    _impl = new PositionCompassImpl();
    }


    It is a hack, but it seems to work.


    I took a quick look through the code, and it appears it should return null if there isn't an active heading source, but it must not be working properly. I've filed this as a bug report. Your workaround looks like it should be fine.
  • I just report the heading data from the device. There is no way for me to tell that the device is being held upside down, or what series of rotations got it to that position, so I have no opportunity to compensate.
  • Please make it work with ForeAthlete 920XTJ because i using 920xt taiwan and not be able to use it. Thanks
  • I'm pretty sure that all I need to do is rebuild it (no code changes necessary). If this is the case, I can upload a new version tonight.
  • I'm pretty sure that all I need to do is rebuild it (no code changes necessary). If this is the case, I can upload a new version tonight.


    Thank you so much. and if possible , please fix the BatteryMonitor datafield as well because that is one of the most useful datafield i ever see for long training but i can't use it now. Looking forward for your update. Thanks
  • Former Member
    Former Member over 10 years ago
    Hi,
    Where on the 920xt does the app appear? I've downloaded it and synced with my watch but can't seem to find it anywhere on the watch.
    Thanks
  • If you are using the widget version, from the watch face, press the up/down keys until you see it. If you are using the app, IQ Apps > Compass. This is assuming that you're running firmware on your 920 that is not ancient (3.30 is the current version).
  • Former Member
    Former Member over 9 years ago
    Mil scale compass?

    I would love to have a compass widget in angular mil scale..
    Is it hard to make a military version from your widget? so that the 360 degrees would be 6000 mil? North 0000 East 1500 and so on... And if you are interested to do this it would be best from the best if you could ad a mgrs gps position to show in the middle of the mil scale?

    This kind of widget could save lives somewhere at world on the operations.. :)