Changeset 4268 in ntrip
- Timestamp:
- Jun 22, 2012, 12:25:05 PM (12 years ago)
- Location:
- trunk/BNC/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/reqcanalyze.cpp
r4267 r4268 139 139 QString prn = QString("%1%2").arg(obs.satSys) 140 140 .arg(obs.satNum, 2, 10, QChar('0')); 141 _satStat[prn].addObs(obs); 142 143 t_anaObs* anaObs = _satStat[prn].currObs; 144 _log->setRealNumberNotation(QTextStream::FixedNotation); 145 _log->setRealNumberPrecision(2); 146 *_log << prn << " " << anaObs->M1 << " " << anaObs->M2 << endl; 141 142 t_satStat& satStat = _satStat[prn]; 143 satStat.addObs(obs); 147 144 } 148 145 149 146 } // while (_currEpo) 147 148 // Analyze the Multipath 149 // --------------------- 150 _log->setRealNumberNotation(QTextStream::FixedNotation); 151 _log->setRealNumberPrecision(2); 152 153 QMapIterator<QString, t_satStat> it(_satStat); 154 while (it.hasNext()) { 155 it.next(); 156 QString prn = it.key(); 157 const t_satStat& satStat = it.value(); 158 if (satStat.MP1.size()) { 159 for (int ii = 0; ii < satStat.MP1.size(); ii++) { 160 *_log << "MP1 " << prn << " " << satStat.MP1[ii] << endl; 161 } 162 } 163 if (satStat.MP2.size()) { 164 for (int ii = 0; ii < satStat.MP2.size(); ii++) { 165 *_log << "MP2 " << prn << " " << satStat.MP2[ii] << endl; 166 } 167 } 168 } 150 169 151 170 _log->flush(); … … 161 180 currObs = new t_anaObs(obs); 162 181 163 if (obs.p1() != 0.0 && obs.p2() != 0.0 &&164 obs.l1() != 0.0 && obs.l2() != 0.0) {165 182 // Compute the Multipath 183 // ---------------------- 184 if (obs.l1() != 0.0 && obs.l2() != 0.0) { 166 185 double f1 = t_CST::f1(obs.satSys, obs.slotNum); 167 186 double f2 = t_CST::f2(obs.satSys, obs.slotNum); … … 170 189 double L2 = obs.l2() * t_CST::c / f2; 171 190 172 // Multipath linear combinations 173 // ----------------------------- 174 currObs->M1 = obs.p1() - L1 - 2.0*f2*f2/(f1*f1-f2*f2) * (L1 - L2); 175 176 currObs->M2 = obs.p2() - L2 - 2.0*f1*f1/(f1*f1-f2*f2) * (L1 - L2); 177 } 178 } 191 if (obs.p1() != 0.0) { 192 currObs->M1 = obs.p1() - L1 - 2.0*f2*f2/(f1*f1-f2*f2) * (L1 - L2); 193 MP1 << currObs->M1; 194 } 195 if (obs.p2() != 0.0) { 196 currObs->M2 = obs.p2() - L2 - 2.0*f1*f1/(f1*f1-f2*f2) * (L1 - L2); 197 MP2 << currObs->M2; 198 } 199 } 200 } -
trunk/BNC/rinex/reqcanalyze.h
r4266 r4268 73 73 } 74 74 void addObs(const t_obs& obs); 75 QVector<double> MP1; 76 QVector<double> MP2; 75 77 t_anaObs* currObs; 76 78 t_anaObs* prevObs;
Note:
See TracChangeset
for help on using the changeset viewer.