public final class GnssStatus extends Object
GnssStatus.Callback
.Modifier and Type | Class and Description |
---|---|
static class |
GnssStatus.Callback
Used for receiving notifications when GNSS events happen.
|
static interface |
GnssStatus.ConstellationType
Constellation type.
|
Modifier and Type | Field and Description |
---|---|
static int |
CONSTELLATION_BEIDOU
Constellation type constant for Beidou.
|
static int |
CONSTELLATION_GALILEO
Constellation type constant for Galileo.
|
static int |
CONSTELLATION_GLONASS
Constellation type constant for Glonass.
|
static int |
CONSTELLATION_GPS
Constellation type constant for GPS.
|
static int |
CONSTELLATION_QZSS
Constellation type constant for QZSS.
|
static int |
CONSTELLATION_SBAS
Constellation type constant for SBAS.
|
static int |
CONSTELLATION_TYPE_MASK |
static int |
CONSTELLATION_TYPE_SHIFT_WIDTH |
static int |
CONSTELLATION_UNKNOWN
Unknown constellation type.
|
static int |
GNSS_SV_FLAGS_HAS_ALMANAC_DATA |
static int |
GNSS_SV_FLAGS_HAS_EPHEMERIS_DATA |
static int |
GNSS_SV_FLAGS_NONE |
static int |
GNSS_SV_FLAGS_USED_IN_FIX |
static int |
SVID_SHIFT_WIDTH |
Modifier and Type | Method and Description |
---|---|
float |
getAzimuthDegrees(int satIndex)
Retrieves the azimuth the satellite at the specified index.
|
float |
getCn0DbHz(int satIndex)
Retrieves the carrier-to-noise density at the antenna of the satellite at the specified index
in dB-Hz.
|
int |
getConstellationType(int satIndex)
Retrieves the constellation type of the satellite at the specified index.
|
float |
getElevationDegrees(int satIndex)
Retrieves the elevation of the satellite at the specified index.
|
int |
getNumSatellites() |
int |
getSatelliteCount()
Gets the total number of satellites in satellite list.
|
int |
getSvid(int satIndex)
Gets the identification number for the satellite at the specific index.
|
boolean |
hasAlmanac(int satIndex) |
boolean |
hasAlmanacData(int satIndex)
Reports whether the satellite at the specified index has almanac data.
|
boolean |
hasEphemeris(int satIndex) |
boolean |
hasEphemerisData(int satIndex)
Reports whether the satellite at the specified index has ephemeris data.
|
boolean |
usedInFix(int satIndex)
Reports whether the satellite at the specified index was used in the calculation of the most
recent position fix.
|
public static final int CONSTELLATION_UNKNOWN
public static final int CONSTELLATION_GPS
public static final int CONSTELLATION_SBAS
public static final int CONSTELLATION_GLONASS
public static final int CONSTELLATION_QZSS
public static final int CONSTELLATION_BEIDOU
public static final int CONSTELLATION_GALILEO
public static final int GNSS_SV_FLAGS_NONE
public static final int GNSS_SV_FLAGS_HAS_EPHEMERIS_DATA
public static final int GNSS_SV_FLAGS_HAS_ALMANAC_DATA
public static final int GNSS_SV_FLAGS_USED_IN_FIX
public static final int SVID_SHIFT_WIDTH
public static final int CONSTELLATION_TYPE_SHIFT_WIDTH
public static final int CONSTELLATION_TYPE_MASK
public int getNumSatellites()
public int getSatelliteCount()
public int getConstellationType(int satIndex)
satIndex
- the index of the satellite in the list.public int getSvid(int satIndex)
This svid is pseudo-random number for most constellations. It is FCN & OSN number for Glonass.
The distinction is made by looking at constellation field
getConstellationType(int)
Expected values are in the range of:
satIndex
- the index of the satellite in the list.public float getCn0DbHz(int satIndex)
satIndex
- the index of the satellite in the list.public float getElevationDegrees(int satIndex)
satIndex
- the index of the satellite in the list.public float getAzimuthDegrees(int satIndex)
satIndex
- the index of the satellite in the list.public boolean hasEphemeris(int satIndex)
public boolean hasEphemerisData(int satIndex)
satIndex
- the index of the satellite in the list.public boolean hasAlmanac(int satIndex)
public boolean hasAlmanacData(int satIndex)
satIndex
- the index of the satellite in the list.public boolean usedInFix(int satIndex)
satIndex
- the index of the satellite in the list.