Ticket Created
over 4 years ago

WERETECH-9909

Unsupported constellation option (CONSTELLATION_GLONASS)

I use the latest Garmin SDK 3.2.3 on a Windows 10 computer and get following error when using Position.CONSTELLATION_GLONASS:

Error: Unhandled Exception

Exception: Unsupported constellation option

Following sequence leads to the error:

if (Sensor has :enableSensorType) {
  // Enable GPS with continuous location updates using GPS, GLONASS and GALILEO
  Position.enableLocationEvents({
    :acquisitionType => Position.LOCATION_CONTINUOUS,
    :constellations => [ Position.CONSTELLATION_GPS, Position.CONSTELLATION_GLONASS, Position.CONSTELLATION_GALILEO ]
  },
  method(:onGpsSensorInfoUpdate)
);

Without using GLONASS as shown in following sequence it works fine:

if (Sensor has :enableSensorType) {
  // Enable GPS with continuous location updates using GPS, GLONASS and GALILEO
  Position.enableLocationEvents({
    :acquisitionType => Position.LOCATION_CONTINUOUS,
    :constellations => [ Position.CONSTELLATION_GPS, Position.CONSTELLATION_GALILEO ]
  },
  method(:onGpsSensorInfoUpdate)
);

  • The problem is that the combinations that are allowed can vary across devices. It could potentially vary across firmware versions on the same device, but this isn't very likely.

    We could clarify by listing the known valid combinations, but I don't see any way to generate the list dynamically, which means that the list would have to be manually maintained.

  • Thank you very much. Improvement in the error message would be great for others. I know how to handle this now.

  • Thank you very much. Understood. The error message was a little bit misleading. But I know what to do now.

  • 's assumption here is correct--this API just enables the combinations made available by the system, but I can understand why you'd try using all three constellations. We don't explain what constitutes an "invalid combination of constellation values."

    I'm going to see if there's any clarification we can make in our docs.

  • I've just assumed the choices are the same as they are for native activities -

    GPS only

    GPS+GLONASS

    GPS+GALILEO

    And that's the way I've coded my apps

    Sounds like the error you get is correct and 

    GPS+GLONASS+GALILEO

    isn't valid

    I tend to use GPS+GLONASS as the default, and let the use change to GPS only or GPS+GALILEO if they chose to.