Changeset 6431 in ntrip


Ignore:
Timestamp:
Dec 25, 2014, 10:30:53 AM (9 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/orbComp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/orbComp/sp3Comp.cpp

    r6430 r6431  
    4949using namespace std;
    5050
    51 bool excludeSat(const t_prn& prn) {
    52   if (prn == t_prn('R', 7)) {
    53     return true;
    54   }
    55   else {
    56     return false;
    57   }
    58 }
    59 
    6051// Constructor
    6152////////////////////////////////////////////////////////////////////////////
     
    7162  _log         = 0;
    7263
    73   //// beg test
    74   _excludeSats.insert(t_prn('R',  2));
    75   _excludeSats.insert(t_prn('R',  3));
    76   _excludeSats.insert(t_prn('R',  4));
    77   _excludeSats.insert(t_prn('R',  5));
    78   _excludeSats.insert(t_prn('R',  6));
    79   _excludeSats.insert(t_prn('R',  7));
    80   _excludeSats.insert(t_prn('R',  9));
    81   _excludeSats.insert(t_prn('R', 10));
    82   _excludeSats.insert(t_prn('R', 11));
    83   _excludeSats.insert(t_prn('R', 12));
    84   _excludeSats.insert(t_prn('R', 13));
    85   _excludeSats.insert(t_prn('R', 14));
    86   _excludeSats.insert(t_prn('R', 15));
    87   _excludeSats.insert(t_prn('R', 16));
    88   _excludeSats.insert(t_prn('R', 17));
    89   _excludeSats.insert(t_prn('R', 18));
    90   _excludeSats.insert(t_prn('R', 19));
    91   _excludeSats.insert(t_prn('R', 20));
    92   _excludeSats.insert(t_prn('R', 21));
    93   _excludeSats.insert(t_prn('R', 22));
    94   _excludeSats.insert(t_prn('R', 23));
    95   _excludeSats.insert(t_prn('R', 24));
    96   //// end test
     64  _excludeSats = settings.value("sp3CompExclude").toString().split(QRegExp("[ ,]"), QString::SkipEmptyParts);
    9765}
    9866
     
    435403////////////////////////////////////////////////////////////////////////////
    436404bool t_sp3Comp::excludeSat(const t_prn& prn) const {
    437   if (_excludeSats.find(prn) != _excludeSats.end()) {
    438     return true;
    439   }
    440   else {
    441     return false;
    442   }
    443 }
    444 
     405  QStringListIterator it(_excludeSats);
     406  while (it.hasNext()) {
     407    string prnStr = it.next().toAscii().data();
     408    if (prnStr == prn.toString() || prnStr == prn.toString().substr(0,1)) {
     409      return true;
     410    }
     411  }
     412  return false;
     413}
     414
  • trunk/BNC/src/orbComp/sp3Comp.h

    r6428 r6431  
    8787  bool excludeSat(const t_prn& prn) const;
    8888
    89   QStringList     _sp3FileNames;
    90   QString         _logFileName;
    91   QFile*          _logFile;
    92   QTextStream*    _log;
    93   std::set<t_prn> _excludeSats;
     89  QStringList  _sp3FileNames;
     90  QString      _logFileName;
     91  QFile*       _logFile;
     92  QTextStream* _log;
     93  QStringList _excludeSats;
    9494};
    9595
Note: See TracChangeset for help on using the changeset viewer.