Changeset 4405 in ntrip for trunk/BNC/src/RTCM/GPSDecoder.cpp


Ignore:
Timestamp:
Jul 8, 2012, 12:45:32 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM/GPSDecoder.cpp

    r4404 r4405  
    9393//////////////////////////////////////////////////////////////////////////////
    9494void t_obs::setMeasdata(const QString& rnxStr, float rnxVers, double value) {
    95   int ie = iEntry(rnxStr, rnxVers);
     95  int ie = iEntry(rnxStr, rnxVers, false);
    9696  if (ie != -1) {
    9797    _measdata[ie] = value;
     
    102102//////////////////////////////////////////////////////////////////////////////
    103103double t_obs::measdata(const QString& rnxStr, float rnxVers) const {
    104   int ie = iEntry(rnxStr, rnxVers);
     104  int ie = iEntry(rnxStr, rnxVers, true);
    105105  if (ie != -1) {
    106106    return _measdata[ie];
     
    113113//
    114114//////////////////////////////////////////////////////////////////////////////
    115 int t_obs::iEntry(const QString& rnxStr, float rnxVers) const {
     115int t_obs::iEntry(const QString& rnxStr, float rnxVers, bool nonEmpty) const {
    116116  if (rnxVers >= 3.0) {
    117117    return iEntryV3(rnxStr);
     
    127127    QString hlpStr = rnxStr + chars[ii];
    128128    int ie = iEntryV3(hlpStr.trimmed());
    129     if (ie != -1) return ie;
     129    if (ie != -1 && (!nonEmpty || _measdata[ie] != 0.0)) {
     130      return ie;
     131    }
    130132  }
    131133
Note: See TracChangeset for help on using the changeset viewer.