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