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)
);

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

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

Children