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
  • 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

Comment
  • 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

Children
No Data