diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2018-09-11 23:21:14 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-09-11 23:21:14 -0700 |
commit | b64feb2b73ac985dc7b0f7c4748d007d7cbae170 (patch) | |
tree | 1b3a83f524e56d26d47153bc6842f0b0de782284 /gnss | |
parent | f6ed7637c38b3d0ba6559b49457c110dae92e0fa (diff) | |
parent | c30e7c5e6304a15b6522f37f30bdb813c20833a6 (diff) | |
download | gps-b64feb2b73ac985dc7b0f7c4748d007d7cbae170.tar.gz |
Merge "Set SV in use mask based on final fixes"
Diffstat (limited to 'gnss')
-rw-r--r-- | gnss/GnssAdapter.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp index 99aefdc..11d98b2 100644 --- a/gnss/GnssAdapter.cpp +++ b/gnss/GnssAdapter.cpp @@ -2913,25 +2913,9 @@ GnssAdapter::needReport(const UlpLocation& ulpLocation, // then always output position reported by engine hub to requesting client if (true == initEngHubProxy()) { reported = true; - } else if (LOC_SESS_SUCCESS == status) { - // this is a final fix - LocPosTechMask mask = - LOC_POS_TECH_MASK_SATELLITE | LOC_POS_TECH_MASK_SENSORS | LOC_POS_TECH_MASK_HYBRID; - // it is a Satellite fix or a sensor fix - reported = (mask & techMask); - } else if (LOC_SESS_INTERMEDIATE == status && - LOC_SESS_INTERMEDIATE == ContextBase::mGps_conf.INTERMEDIATE_POS) { - // this is a intermediate fix and we accepte intermediate - - // it is NOT the case that - // there is inaccuracy; and - // we care about inaccuracy; and - // the inaccuracy exceeds our tolerance - reported = !((ulpLocation.gpsLocation.flags & LOC_GPS_LOCATION_HAS_ACCURACY) && - (ContextBase::mGps_conf.ACCURACY_THRES != 0) && - (ulpLocation.gpsLocation.accuracy > ContextBase::mGps_conf.ACCURACY_THRES)); + } else { + reported = LocApiBase::needReport(ulpLocation, status, techMask); } - return reported; } |