Changeset 8798 in ntrip


Ignore:
Timestamp:
Sep 20, 2019, 2:42:08 PM (5 years ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src/rinex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcedit.cpp

    r8655 r8798  
    522522    }
    523523  }
     524  // TODO: enable user decision
    524525  qStableSort(ephs.begin(), ephs.end(), t_eph::earlierTime);
     526  //qStableSort(ephs.begin(), ephs.end(), t_eph::prnSort);
    525527}
    526528
     
    653655void t_reqcEdit::appendEphemerides(const QString& fileName,
    654656                                   QVector<t_eph*>& ephs) {
    655 
    656657  t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input);
    657658  for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) {
  • trunk/BNC/src/rinex/rnxobsfile.cpp

    r8762 r8798  
    360360                   << "C8Q" << "L8Q" << "S8Q"
    361361                   << "C8X" << "L8X" << "S8X";
    362                    
     362
    363363    _obsTypes['S'] << "C1C" << "L1C" << "S1C"
    364364                   << "C5I" << "L5I" << "S5I"
     
    13151315    const t_rnxSat& rnxSat = epo->rnxSat[ii];
    13161316    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      }
    13171324      epoLocal.rnxSat.push_back(rnxSat);
    13181325    }
    13191326  }
     1327  std::stable_sort(epoLocal.rnxSat.begin(), epoLocal.rnxSat.end(), t_rnxSat::prnSort);
    13201328
    13211329  if (version() < 3.0) {
  • trunk/BNC/src/rinex/rnxobsfile.h

    r8640 r8798  
    4646
    4747 public:
    48   static const QString defaultSystems;
    4948
    5049  t_rnxObsHeader();
     
    124123    t_prn                   prn;
    125124    QMap<QString, t_rnxObs> obs;
     125    static bool prnSort(const t_rnxSat rnxSat1, const t_rnxSat rnxSat2) {return rnxSat1.prn < rnxSat2.prn;}
    126126  };
    127127
     
    221221        if (header.version() < 3.0) { // exclude new GNSS such as BDS, QZSS, IRNSS, etc.
    222222            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') {
    224225              continue;
    225226            }
     
    228229      }
    229230    }
     231    std::stable_sort(epoLocal.rnxSat.begin(), epoLocal.rnxSat.end(), t_rnxSat::prnSort);
     232
    230233    if (header.version() >= 3.0) {
    231234      writeEpochV3(stream, header, &epoLocal);
Note: See TracChangeset for help on using the changeset viewer.