Changeset 4405 in ntrip for trunk/BNC/src/RTCM/GPSDecoder.cpp
- Timestamp:
- Jul 8, 2012, 12:45:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM/GPSDecoder.cpp
r4404 r4405 93 93 ////////////////////////////////////////////////////////////////////////////// 94 94 void t_obs::setMeasdata(const QString& rnxStr, float rnxVers, double value) { 95 int ie = iEntry(rnxStr, rnxVers );95 int ie = iEntry(rnxStr, rnxVers, false); 96 96 if (ie != -1) { 97 97 _measdata[ie] = value; … … 102 102 ////////////////////////////////////////////////////////////////////////////// 103 103 double t_obs::measdata(const QString& rnxStr, float rnxVers) const { 104 int ie = iEntry(rnxStr, rnxVers );104 int ie = iEntry(rnxStr, rnxVers, true); 105 105 if (ie != -1) { 106 106 return _measdata[ie]; … … 113 113 // 114 114 ////////////////////////////////////////////////////////////////////////////// 115 int t_obs::iEntry(const QString& rnxStr, float rnxVers ) const {115 int t_obs::iEntry(const QString& rnxStr, float rnxVers, bool nonEmpty) const { 116 116 if (rnxVers >= 3.0) { 117 117 return iEntryV3(rnxStr); … … 127 127 QString hlpStr = rnxStr + chars[ii]; 128 128 int ie = iEntryV3(hlpStr.trimmed()); 129 if (ie != -1) return ie; 129 if (ie != -1 && (!nonEmpty || _measdata[ie] != 0.0)) { 130 return ie; 131 } 130 132 } 131 133
Note:
See TracChangeset
for help on using the changeset viewer.