Changeset 5549 in ntrip for trunk/BNC/src/RTCM
- Timestamp:
- Nov 17, 2013, 1:18:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM/GPSDecoder.cpp
r5548 r5549 117 117 double t_obs::measdata(const QString& rnxStr, float rnxVers) const { 118 118 119 int maxTrial = 1; 120 if (rnxVers < 3.0 && rnxStr.length() == 2) { 121 maxTrial = 3; 122 } 123 124 for (int iTrial = 1; iTrial <= maxTrial; iTrial++) { 125 QString rnxStrHlp = rnxStr; 126 if (iTrial == 2) { 127 rnxStrHlp += 'C'; 128 } 129 else if (iTrial == 3) { 130 rnxStrHlp += 'P'; 131 } 132 int ie = iEntry(rnxStrHlp); 133 if (ie != -1 && _measdata[ie] != 0.0) { 134 return _measdata[ie]; 135 } 136 } 137 119 QString rnxStr_l = rnxStr; 120 121 if (rnxVers < 3.0) { 122 if (rnxStr_l == "C1") rnxStr_l = "C1C"; 123 else if (rnxStr_l == "P1") rnxStr_l = "C1P"; 124 else if (rnxStr_l == "C2") rnxStr_l = "C2C"; 125 else if (rnxStr_l == "P2") rnxStr_l = "C2P"; 126 } 127 128 int ie = iEntry(rnxStr_l); 129 if (ie != -1) { 130 return _measdata[ie]; 131 } 132 138 133 return 0.0; 139 134 } … … 209 204 else if (rnxStr[1] == '2') { 210 205 if (rnxStr.length() < 3) { 211 res += GNSSENTRY_TYPE P2;206 res += GNSSENTRY_TYPEC2; 212 207 } 213 208 else if (QString("PWY").indexOf(rnxStr[2]) != -1) {
Note:
See TracChangeset
for help on using the changeset viewer.