Acknowledged

Toybox.Position documentation error

https://developer.garmin.com/connect-iq/api-docs/Toybox/Position.html#enableLocationEvents-instance_function

At the EnableLocationEvents example:

if (Position has :CONFIGURATION_GPS_GLONASS_GALILEO_BEIDOU_L1_L5) { options[:configuration] = :CONFIGURATION_GPS_GLONASS_GALILEO_BEIDOU_L1_L5; } else if (Position has :CONSTELLATION_GPS_GLONASS) { options[:constellations] = [ Position.CONSTELLATION_GPS, Position.CONSTELLATION_GLONASS ]; } else { options = Position.LOCATION_CONTINUOUS; }

label seems to be wrong, I think it should be

:CONSTELLATION_GLONASS

instead of

:CONSTELLATION_GPS_GLONASS

Parents
  • Actually, Constellations started with 3.2.  Before that, what was used was whatever was used in the last native activity.

    To use the stuff that came in 3.2, you'd do this:
    :constellations => [Position.CONSTELLATION_GPS, Position.CONSTELLATION_GLONASS]

    With 3,3,6 devices, the new stuff kicks in.  There are two System6 preview devices where you can try the new stuff in the sim, but actual devices don't have the needed FW yet.

Comment
  • Actually, Constellations started with 3.2.  Before that, what was used was whatever was used in the last native activity.

    To use the stuff that came in 3.2, you'd do this:
    :constellations => [Position.CONSTELLATION_GPS, Position.CONSTELLATION_GLONASS]

    With 3,3,6 devices, the new stuff kicks in.  There are two System6 preview devices where you can try the new stuff in the sim, but actual devices don't have the needed FW yet.

Children
  • Thanks for the clarification. I'm actually struggling to simulate configurations with Fenix System6 preview and 4.2.0 beta 1, the CONFIGURATION_* labels are recognized but then apparently the configuration is not supported in EnableLocationEvents(). I guess it's better to wait until these features become official...

    On the initial topic, I think it's clear. Both CONSTELLATION_GLONASS and CONFIGURATION_GPS_GLONASS are valid labels (the latter for System6 only), but not CONSTELLATION_GPS_GLONASS - notice the _GPS_ in between- which is what appears in the doc (highlighted in the original post).

    Thanks again