diff options
author | Wei Chen <weic@codeaurora.org> | 2019-09-30 11:46:56 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-10-22 11:55:12 -0700 |
commit | 3a84bfac176e1e52ddb010ab61f67d70b67f9fd5 (patch) | |
tree | 41d10dcf0f6158d493fb32d6d1d2a8ef302ade1a /gnss | |
parent | 87923e48c1b0ad158c0ca92bd049524d7ff672fd (diff) | |
download | gps-3a84bfac176e1e52ddb010ab61f67d70b67f9fd5.tar.gz |
GPS NMEA: enhance gga fix qualtiy for sensor contributed fix
This enhancement will be enabled if CUSTOM_NMEA_GGA_FIX_QUALITY_ENABLED
is set to 1 in gps.conf.
PPP fix w/o sensor: fix quality will now be 59
PPP fix w sensor: fix quality will now be 69
RTK fixed fix w/ sensor: fix quality will now be 64
RTK float fix w/ sensor: 65
DGNSS and/or SBAS correction fix and w/ sensor: 62
GPS fix without correction but and w/ sensor: 61
Change-Id: I7bc1bb5504e023de40f271d97d31c602f27bd94e
CRs-fixed: 2537211
Diffstat (limited to 'gnss')
-rw-r--r-- | gnss/GnssAdapter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp index 43fb63b..980d489 100644 --- a/gnss/GnssAdapter.cpp +++ b/gnss/GnssAdapter.cpp @@ -3272,9 +3272,10 @@ GnssAdapter::reportPosition(const UlpLocation& ulpLocation, (0 == ulpLocation.gpsLocation.longitude) && (LOC_RELIABILITY_NOT_SET == locationExtended.horizontal_reliability)); uint8_t generate_nmea = (reportToGnssClient && status != LOC_SESS_FAILURE && !blank_fix); + bool custom_nmea_gga = (1 == ContextBase::mGps_conf.CUSTOM_NMEA_GGA_FIX_QUALITY_ENABLED); std::vector<std::string> nmeaArraystr; loc_nmea_generate_pos(ulpLocation, locationExtended, mLocSystemInfo, - generate_nmea, nmeaArraystr); + generate_nmea, custom_nmea_gga, nmeaArraystr); stringstream ss; for (auto itor = nmeaArraystr.begin(); itor != nmeaArraystr.end(); ++itor) { ss << *itor; |