Changeset 9870 in ntrip for trunk/BNC/src/rinex/rnxobsfile.cpp
- Timestamp:
- Nov 3, 2022, 9:44:02 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r9770 r9870 190 190 else if (key == "# / TYPES OF OBSERV") { 191 191 if (_version == 0.0) { 192 _version = defaultRnxObsVersion2;193 }192 _version = defaultRnxObsVersion2; 193 } 194 194 QTextStream* in = new QTextStream(value.toLatin1(), QIODevice::ReadOnly); 195 195 int nTypes; … … 214 214 else if (key == "SYS / # / OBS TYPES") { 215 215 if (_version == 0.0) { 216 bncSettings settings; 217 _version = versionFromInt(settings.value("rnxVersion").toInt()); 216 _version = defaultRnxObsVersion3; 218 217 } 219 218 QTextStream* in = new QTextStream(value.toLatin1(), QIODevice::ReadOnly); … … 321 320 _usedSystems += QChar(it.key()); 322 321 } 323 322 324 323 return success; 325 324 } … … 409 408 const QStringList* gloSlots) { 410 409 411 if (version == 2) { 412 _version = defaultRnxObsVersion2; 413 } 414 else if (version == 3) { 415 _version = defaultRnxObsVersion3; 416 } 417 else if (version == 4) { 418 _version = defaultRnxObsVersion4; 419 } 410 _version = versionFromInt(version); 411 420 412 _interval = header._interval; 421 413 _antennaNumber = header._antennaNumber; … … 925 917 //////////////////////////////////////////////////////////////////////////// 926 918 QString t_rnxObsHeader::obsType(char sys, int index, double version) const { 927 928 919 if (version == 0.0) { 929 920 version = _version; 930 921 } 922 931 923 if (_obsTypes.contains(sys)) { 932 924 QString origType = _obsTypes[sys].at(index);
Note:
See TracChangeset
for help on using the changeset viewer.