Changeset 9266 in ntrip for trunk/BNC/src/combination/bnccomb.cpp
- Timestamp:
- Nov 23, 2020, 9:27:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/combination/bnccomb.cpp
r9265 r9266 409 409 continue; 410 410 } 411 else if (ephLast->checkState() != t_eph::ok) { 412 emit newMessage("bncComb: eph not ok for " + prn.mid(0,3).toLatin1(), true); 413 delete newCorr; 414 continue; 415 } 411 416 else { 412 417 if (ephLast->IOD() == newCorr->_iod) { … … 458 463 return; 459 464 } 460 461 /* No switch, if the last one is too recent 462 // ---------------------------------------- 463 const int MINAGE = 100; // seconds, upload is waiting 60 seconds + combi has ~30 seconds latency 464 if (lastEph->receptDateTime().isValid() && 465 lastEph->receptDateTime().secsTo(currentDateAndTimeGPS()) < MINAGE) { 466 return; 467 }*/ 468 465 469 466 ColumnVector oldXC(6); 470 467 ColumnVector oldVV(3); 471 corr->_eph->getCrd(corr->_time, oldXC, oldVV, false); 468 if (corr->_eph->getCrd(corr->_time, oldXC, oldVV, false) != success) { 469 return; 470 } 472 471 473 472 ColumnVector newXC(6); 474 473 ColumnVector newVV(3); 475 lastEph->getCrd(corr->_time, newXC, newVV, false); 474 if (lastEph->getCrd(corr->_time, newXC, newVV, false) != success) { 475 return; 476 } 476 477 477 478 ColumnVector dX = newXC.Rows(1,3) - oldXC.Rows(1,3); 478 479 ColumnVector dV = newVV - oldVV; 479 480 double dC = newXC(4) - oldXC(4); 480 481 /* small check 482 // ----------- 483 const double MAXDIFF = 1000.0; 484 double diff = dX.NormFrobenius(); 485 double diffC = dC * t_CST::c ; 486 if (diff > MAXDIFF || 487 diffC > MAXDIFF) { 488 return; 489 } 490 */ 481 491 482 ColumnVector dRAO(3); 492 483 XYZ_to_RSW(newXC.Rows(1,3), newVV, dX, dRAO);
Note:
See TracChangeset
for help on using the changeset viewer.