/** * <summary> * Returns the the satellites constellation used to compute * positioning data. * <para> * </para> * <para> * </para> * </summary> * <returns> * a value among <c>YGps.CONSTELLATION_GNSS</c>, <c>YGps.CONSTELLATION_GPS</c>, * <c>YGps.CONSTELLATION_GLONASS</c>, <c>YGps.CONSTELLATION_GALILEO</c>, * <c>YGps.CONSTELLATION_GPS_GLONASS</c>, <c>YGps.CONSTELLATION_GPS_GALILEO</c> and * <c>YGps.CONSTELLATION_GLONASS_GALILEO</c> corresponding to the the satellites constellation used to compute * positioning data * </returns> * <para> * On failure, throws an exception or returns <c>YGps.CONSTELLATION_INVALID</c>. * </para> */ public int get_constellation() { if (_func == null) { throw new YoctoApiProxyException("No Gps connected"); } // our enums start at 0 instead of the 'usual' -1 for invalid return(_func.get_constellation() + 1); }