Changeset 8798 in ntrip for trunk/BNC/src
- Timestamp:
- Sep 20, 2019, 2:42:08 PM (5 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcedit.cpp
r8655 r8798 522 522 } 523 523 } 524 // TODO: enable user decision 524 525 qStableSort(ephs.begin(), ephs.end(), t_eph::earlierTime); 526 //qStableSort(ephs.begin(), ephs.end(), t_eph::prnSort); 525 527 } 526 528 … … 653 655 void t_reqcEdit::appendEphemerides(const QString& fileName, 654 656 QVector<t_eph*>& ephs) { 655 656 657 t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input); 657 658 for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) { -
trunk/BNC/src/rinex/rnxobsfile.cpp
r8762 r8798 360 360 << "C8Q" << "L8Q" << "S8Q" 361 361 << "C8X" << "L8X" << "S8X"; 362 362 363 363 _obsTypes['S'] << "C1C" << "L1C" << "S1C" 364 364 << "C5I" << "L5I" << "S5I" … … 1315 1315 const t_rnxSat& rnxSat = epo->rnxSat[ii]; 1316 1316 if (_header._obsTypes[rnxSat.prn.system()].size() > 0) { 1317 if (_header.version() < 3.0) { // exclude new GNSS such as BDS, QZSS, IRNSS, etc. 1318 if (rnxSat.prn.system() != 'G' && rnxSat.prn.system() != 'R' && 1319 rnxSat.prn.system() != 'E' && rnxSat.prn.system() != 'S' && 1320 rnxSat.prn.system() != 'I') { 1321 continue; 1322 } 1323 } 1317 1324 epoLocal.rnxSat.push_back(rnxSat); 1318 1325 } 1319 1326 } 1327 std::stable_sort(epoLocal.rnxSat.begin(), epoLocal.rnxSat.end(), t_rnxSat::prnSort); 1320 1328 1321 1329 if (version() < 3.0) { -
trunk/BNC/src/rinex/rnxobsfile.h
r8640 r8798 46 46 47 47 public: 48 static const QString defaultSystems;49 48 50 49 t_rnxObsHeader(); … … 124 123 t_prn prn; 125 124 QMap<QString, t_rnxObs> obs; 125 static bool prnSort(const t_rnxSat rnxSat1, const t_rnxSat rnxSat2) {return rnxSat1.prn < rnxSat2.prn;} 126 126 }; 127 127 … … 221 221 if (header.version() < 3.0) { // exclude new GNSS such as BDS, QZSS, IRNSS, etc. 222 222 if (rnxSat.prn.system() != 'G' && rnxSat.prn.system() != 'R' && 223 rnxSat.prn.system() != 'E' && rnxSat.prn.system() != 'S') { 223 rnxSat.prn.system() != 'E' && rnxSat.prn.system() != 'S' && 224 rnxSat.prn.system() != 'I') { 224 225 continue; 225 226 } … … 228 229 } 229 230 } 231 std::stable_sort(epoLocal.rnxSat.begin(), epoLocal.rnxSat.end(), t_rnxSat::prnSort); 232 230 233 if (header.version() >= 3.0) { 231 234 writeEpochV3(stream, header, &epoLocal);
Note:
See TracChangeset
for help on using the changeset viewer.