- Timestamp:
- Nov 16, 2021, 1:58:13 PM (3 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r9538 r9545 277 277 } 278 278 if (iObs + 1 < _opt->_minObs) { 279 LOG << "t_pppClient::cmpBancroft not enough observations "<< endl;279 LOG << "t_pppClient::cmpBancroft not enough observations: " << iObs + 1 << endl; 280 280 return failure; 281 281 } … … 507 507 // 508 508 ////////////////////////////////////////////////////////////////////////////// 509 void t_pppClient::finish(t_irc irc ) {509 void t_pppClient::finish(t_irc irc, int ind) {// LOG << "t_pppClient::finish(" << irc << ") " << ind << endl; 510 510 511 511 clearObs(); … … 535 535 _output->_log = _log->str(); 536 536 delete _log; _log = new ostringstream(); 537 538 return; 537 539 } 538 540 … … 604 606 if(_filter->datumTransformation(_refSatMap) != success) { 605 607 LOG << "t_pppFilter::datumTransformation() != success" << endl; 606 return finish(failure );608 return finish(failure,1); 607 609 } 608 610 else { … … 614 616 // --------------------------------- 615 617 if (prepareObs(satObs, _obsRover, _epoTimeRover) != success) { 616 return finish(failure );618 return finish(failure,2); 617 619 } 618 620 … … 627 629 bool print = (iter == 2); 628 630 if (cmpBancroft(_epoTimeRover, _obsRover, xyzc, print) != success) { 629 return finish(failure );631 return finish(failure,3); 630 632 } 631 633 if (cmpModel(_staRover, xyzc, _obsRover) != success) { 632 return finish(failure); 633 } 634 return finish(failure,4); 635 } 636 } 637 638 if (int(_obsRover.size()) < _opt->_minObs) { 639 LOG << "t_pppClient::processEpoch not enough observations" << endl; 640 return finish(failure,5); 634 641 } 635 642 636 643 if (_opt->_refSatRequired) { 637 644 if (handleRefSatellites(_obsRover) != success) { 638 return finish(failure );645 return finish(failure,6); 639 646 } 640 647 if (_obsPool->refSatChanged()) { … … 653 660 _pseudoObsIono = preparePseudoObs(_obsRover); 654 661 655 if (int(_obsRover.size()) < _opt->_minObs) {656 LOG << "t_pppClient::processEpoch not enough observations" << endl;657 return finish(failure);658 }659 660 662 // Store last epoch of data 661 663 // ------------------------ … … 665 667 // ----------------------- 666 668 if (_filter->processEpoch() != success) { 667 return finish(failure); 669 LOG << "filter->processEpoch() != success" << endl; 670 return finish(failure,7); 668 671 } 669 672 … … 672 675 if (_obsPool->refSatChangeRequired() && //SLIP 673 676 _opt->_obsModelType != t_pppOptions::UncombPPP) { 677 LOG << "pppClient: _obsPool->refSatChangeRequired() " << endl; 674 678 epochReProcessing = true; 675 679 _obsPool->deleteLastEpoch(); … … 689 693 catch (Exception& exc) { 690 694 LOG << exc.what() << endl; 691 return finish(failure );695 return finish(failure,8); 692 696 } 693 697 catch (t_except msg) { 694 698 LOG << msg.what() << endl; 695 return finish(failure );699 return finish(failure,9); 696 700 } 697 701 catch (const char* msg) { 698 702 LOG << msg << endl; 699 return finish(failure );703 return finish(failure,10); 700 704 } 701 705 catch (...) { 702 706 LOG << "unknown exception" << endl; 703 return finish(failure); 704 } 705 706 return finish(success); 707 return finish(failure,11); 708 } 709 return finish(success,12); 707 710 } 708 711 -
trunk/BNC/src/PPP/pppClient.h
r9508 r9545 52 52 private: 53 53 void initOutput(t_output* output); 54 void finish(t_irc irc );54 void finish(t_irc irc, int ind); 55 55 void clearObs(); 56 56 t_irc prepareObs(const std::vector<t_satObs*>& satObs, -
trunk/BNC/src/PPP/pppFilter.cpp
r9538 r9545 693 693 694 694 if (OPT->_obsModelType == OPT->UncombPPP) { 695 _obsPool->putEpoch(_epoTime, allObs, peseudoObsIono, refSatMap); 695 696 return success; 696 697 } -
trunk/BNC/src/PPP/pppParlist.cpp
r9535 r9545 448 448 449 449 else if (par->type() == t_pppParam::amb) { 450 if (par->lastObsTime().valid() && (epoTime - par->lastObsTime() > 60.0)) { 451 remove = true; 452 } 450 453 if (OPT->_obsModelType == OPT->DCMcodeBias || 451 454 OPT->_obsModelType == OPT->DCMphaseBias) { … … 453 456 t_prn refPrn = (refSatMap[sys])->prn(); 454 457 if (par->lastObsTime().valid() && par->prn() == refPrn) { 455 remove = true;456 }457 }458 else {459 if (par->lastObsTime().valid() && (epoTime - par->lastObsTime() > 60.0)) {460 458 remove = true; 461 459 } … … 875 873 << endl; 876 874 } 875 return; 877 876 } 878 877
Note:
See TracChangeset
for help on using the changeset viewer.