synchronized void setStatus(int svCount, int[] prns, float[] snrs,
float[] elevations, float[] azimuths, int ephemerisMask,
int almanacMask, int usedInFixMask) {
clearSatellites();
for (int i = 0; i < svCount; i++) {
int prn = prns[i];
int prnShift = (1 << (prn - 1));
if (prn > 0 && prn <= NUM_SATELLITES) {
GpsSatellite satellite = mSatellites.get(prn);
if (satellite == null) {
satellite = new GpsSatellite(prn);
mSatellites.put(prn, satellite);
}
satellite.mValid = true;
satellite.mSnr = snrs[i];
satellite.mElevation = elevations[i];
satellite.mAzimuth = azimuths[i];
satellite.mHasEphemeris = ((ephemerisMask & prnShift) != 0);
satellite.mHasAlmanac = ((almanacMask & prnShift) != 0);
//satellite.mUsedInFix = ((usedInFixMask & prnShift) != 0);
satellite.mUsedInFix = true;
}
}
}
android_frameworks_base/location/java/android/location/GpsStatus.java
Temporary GPS fix.
Fixed numbers of used sattelites.
Temporary GPS fix.
Fixed numbers of used sattelites.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.