Changeset 9267 in ntrip
- Timestamp:
- Nov 23, 2020, 9:40:46 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/combination/bnccomb.cpp
r9261 r9267 163 163 164 164 QString ssrFormat; 165 _ssrCorr = 0; 165 166 QListIterator<QString> it(settings.value("uploadMountpointsOut").toStringList()); 166 167 while (it.hasNext()) { … … 170 171 } 171 172 } 172 _ssrCorr = 0;173 173 if (ssrFormat == "IGS-SSR") { 174 174 _ssrCorr = new SsrCorrIgs(); … … 177 177 _ssrCorr = new SsrCorrRtcm(); 178 178 } 179 179 else { // default 180 _ssrCorr = new SsrCorrIgs(); 181 } 182 180 183 _rtnetDecoder = 0; 181 184 … … 407 410 else { 408 411 QMap<t_prn, t_orbCorr>& storage = _orbCorrections[acName]; 409 if (!storage.contains(clkCorr._prn) || storage[clkCorr._prn]._iod != newCorr->_iod) { 412 if (!storage.contains(clkCorr._prn) || 413 storage[clkCorr._prn]._iod != newCorr->_iod) { 410 414 delete newCorr; 411 415 continue; … … 422 426 if (ephLast == 0) { 423 427 emit newMessage("bncComb: eph not found for " + prn.mid(0,3).toAscii(), true); 428 delete newCorr; 429 continue; 430 } 431 else if (ephLast->checkState() != t_eph::ok) { 432 emit newMessage("bncComb: eph not ok for " + prn.mid(0,3).toLatin1(), true); 424 433 delete newCorr; 425 434 continue; … … 470 479 ColumnVector oldXC(6); 471 480 ColumnVector oldVV(3); 472 corr->_eph->getCrd(corr->_time, oldXC, oldVV, false); 481 if (corr->_eph->getCrd(corr->_time, oldXC, oldVV, false) != success) { 482 return; 483 } 473 484 474 485 ColumnVector newXC(6); 475 486 ColumnVector newVV(3); 476 lastEph->getCrd(corr->_time, newXC, newVV, false); 487 if (lastEph->getCrd(corr->_time, newXC, newVV, false) != success) { 488 return; 489 } 477 490 478 491 ColumnVector dX = newXC.Rows(1,3) - oldXC.Rows(1,3); 479 492 ColumnVector dV = newVV - oldVV; 480 493 double dC = newXC(4) - oldXC(4); 481 482 // small check483 // -----------484 const double MAXDIFF = 1000.0;485 double diff = dX.norm_Frobenius();486 double diffC = dC * t_CST::c ;487 if (diff > MAXDIFF ||488 diffC > MAXDIFF) {489 return;490 }491 494 492 495 ColumnVector dRAO(3);
Note:
See TracChangeset
for help on using the changeset viewer.