- Timestamp:
- Jun 22, 2012, 11:05:56 AM (13 years ago)
- Location:
- trunk/BNC/rinex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/rinex/bncpostprocess.cpp ¶
r4261 r4263 126 126 else if (type.indexOf("L1") == 0 && obs.L1C == 0.0) { 127 127 obs.L1C = rnxSat.obs[iType]; 128 if (obs.slip_cnt_L1 < 0) { // undefined value 129 obs.slip_cnt_L1 = 0; 130 } 131 else if (rnxSat.lli[iType] & 1) { 132 ++obs.slip_cnt_L1; 133 } 128 134 } 129 135 else if (type.indexOf("C2") == 0 && obs.C2 == 0.0) { … … 135 141 else if (type.indexOf("L2") == 0 && obs.L2C == 0.0) { 136 142 obs.L2C = rnxSat.obs[iType]; 143 if (obs.slip_cnt_L2 < 0) { // undefined value 144 obs.slip_cnt_L2 = 0; 145 } 146 else if (rnxSat.lli[iType] & 1) { 147 ++obs.slip_cnt_L2; 148 } 137 149 } 138 150 } -
TabularUnified trunk/BNC/rinex/reqcanalyze.cpp ¶
r4262 r4263 136 136 } 137 137 138 QString prn = QString("%1%2").arg(obs.satSys) 139 .arg(obs.satNum, 2, 10, QChar('0')); 140 _satStat[prn].addObs(obs); 138 141 } 139 142 … … 142 145 _log->flush(); 143 146 } 147 148 // 149 //////////////////////////////////////////////////////////////////////////// 150 void t_reqcAnalyze::t_satStat::addObs(const t_obs& obs) { 151 if (currObs) { 152 delete prevObs; 153 prevObs = currObs; 154 } 155 currObs = new t_obs(obs); 156 } -
TabularUnified trunk/BNC/rinex/reqcanalyze.h ¶
r4260 r4263 29 29 #include "rnxobsfile.h" 30 30 #include "rnxnavfile.h" 31 #include "RTCM/GPSDecoder.h" 31 32 #include "RTCM3/ephemeris.h" 32 33 … … 49 50 50 51 private: 52 class t_satStat { 53 public: 54 t_satStat() { 55 currObs = 0; 56 prevObs = 0; 57 } 58 ~t_satStat() { 59 delete currObs; 60 delete prevObs; 61 } 62 void addObs(const t_obs& obs); 63 t_obs* currObs; 64 t_obs* prevObs; 65 }; 66 51 67 void analyzeFile(t_rnxObsFile* obsFile); 52 68 53 QString _logFileName; 54 QFile* _logFile; 55 QTextStream* _log; 56 QStringList _obsFileNames; 57 QVector<t_rnxObsFile*> _rnxObsFiles; 58 QStringList _navFileNames; 59 QVector<t_eph*> _ephs; 60 ; 69 QString _logFileName; 70 QFile* _logFile; 71 QTextStream* _log; 72 QStringList _obsFileNames; 73 QVector<t_rnxObsFile*> _rnxObsFiles; 74 QStringList _navFileNames; 75 QVector<t_eph*> _ephs; 76 QMap<QString, t_satStat> _satStat; 61 77 }; 62 78
Note:
See TracChangeset
for help on using the changeset viewer.