Changeset 6431 in ntrip for trunk/BNC/src/orbComp
- Timestamp:
- Dec 25, 2014, 10:30:53 AM (10 years ago)
- Location:
- trunk/BNC/src/orbComp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/orbComp/sp3Comp.cpp
r6430 r6431 49 49 using namespace std; 50 50 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 60 51 // Constructor 61 52 //////////////////////////////////////////////////////////////////////////// … … 71 62 _log = 0; 72 63 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); 97 65 } 98 66 … … 435 403 //////////////////////////////////////////////////////////////////////////// 436 404 bool 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 87 87 bool excludeSat(const t_prn& prn) const; 88 88 89 QStringList 90 QString 91 QFile* 92 QTextStream* 93 std::set<t_prn>_excludeSats;89 QStringList _sp3FileNames; 90 QString _logFileName; 91 QFile* _logFile; 92 QTextStream* _log; 93 QStringList _excludeSats; 94 94 }; 95 95
Note:
See TracChangeset
for help on using the changeset viewer.