Changeset 9508 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Oct 6, 2021, 10:50:34 PM (3 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r9490 r9508 69 69 if (_opt->_refSatRequired) { 70 70 for (unsigned iSys = 0; iSys < _opt->systems().size(); iSys++) { 71 char sys tem= _opt->systems()[iSys];72 _ obsPool->initRefSatMapElement(system);71 char sys = _opt->systems()[iSys]; 72 _refSatMap[sys] = new t_pppRefSat(); 73 73 } 74 74 } … … 94 94 delete _tides; 95 95 clearObs(); 96 QMapIterator<char, t_pppRefSat*> it(_refSatMap); 97 while (it.hasNext()) { 98 it.next(); 99 delete it.value(); 100 } 101 _refSatMap.clear(); 96 102 } 97 103 … … 216 222 while (it != obsVector.end()) { 217 223 t_pppSatObs* satObs = *it; 218 char sys tem= satObs->prn().system();219 t_pppRefSat* refSat = _ obsPool->getRefSatMapElement(system);224 char sys = satObs->prn().system(); 225 t_pppRefSat* refSat = _refSatMap[sys]; 220 226 double stecRef = refSat->stecValue(); 221 227 if (stecRef && !satObs->isReference()) { … … 605 611 #endif 606 612 if (_obsPool->refSatChanged()) { 607 if(_filter->datumTransformation( ) != success) {608 LOG << " pppFilter::datumTransformation() != success" << endl;613 if(_filter->datumTransformation(_refSatMap) != success) { 614 LOG << "t_pppFilter::datumTransformation() != success" << endl; 609 615 return finish(failure); 610 616 } 611 617 else { 612 LOG << "pppFilter::datumTransformation() == success" << endl; 613 if (!_obsPool->refSatChangeRequired()) { 614 _obsPool->saveLastEpoRefSats(); 615 } 618 LOG << "t_pppFilter::datumTransformation() == success" << endl; 616 619 } 617 620 } … … 643 646 return finish(failure); 644 647 } 645 if (_obsPool->refSatChanged() && 646 (_opt->_obsModelType == OPT->DCMcodeBias || 647 _opt->_obsModelType == OPT->DCMphaseBias || 648 _opt->_pseudoObsIono) 649 ) { 650 LOG << "refSatChanged()" << endl; 648 if (_obsPool->refSatChanged()) { 649 LOG << "t_pppFilter: refSatChanged()" << endl; 651 650 epochReProcessing = true; 652 651 continue; … … 669 668 // Store last epoch of data 670 669 // ------------------------ 671 _obsPool->putEpoch(_epoTimeRover, _obsRover, _pseudoObsIono );670 _obsPool->putEpoch(_epoTimeRover, _obsRover, _pseudoObsIono, _refSatMap); 672 671 673 672 // Process Epoch in Filter … … 798 797 char sys = _opt->systems()[iSys]; 799 798 bool refSatDefined = false; 800 t_pppRefSat* refSat = _ obsPool->getRefSatMapElement(sys);799 t_pppRefSat* refSat = _refSatMap[sys]; 801 800 for (unsigned ii = 0; ii < obsVector.size(); ii++) { 802 801 t_pppSatObs* satObs = obsVector.at(ii); … … 806 805 // reference satellite is unchanged 807 806 // ================================ 808 if (!_obsPool->refSatChangeRequired(sys) && refSat->prn() == satObs->prn()) {807 if ( !_obsPool->refSatChangeRequired(sys) && refSat->prn() == satObs->prn()) { 809 808 refSatDefined = true; 810 809 obsVector[ii]->setAsReference(); … … 878 877 setRefSatellites(obsVector); // current epoch 879 878 LOG.setf(ios::fixed); 880 QMapIterator<char, t_pppRefSat*> it(_obsPool->getRefSatMap()); 879 t_pppObsPool::t_epoch* epoch = _obsPool->lastEpoch(); 880 const QMap<char, t_pppRefSat*>& refSatMapLastEpoch = epoch->refSatMap(); 881 882 QMapIterator<char, t_pppRefSat*> it(_refSatMap); 881 883 while (it.hasNext()) { 882 884 it.next(); 883 885 char sys = it.key(); 884 886 t_prn prn = it.value()->prn(); 887 t_prn refSatLastEpochPrn = t_prn(); 888 if (epoch) { 889 refSatLastEpochPrn = refSatMapLastEpoch[sys]->prn(); 890 } 885 891 if (prn.number() == 0) { // no obs for that system available 886 892 continue; … … 891 897 } 892 898 QString str; 893 if (prn == _obsPool->getRefSatMapElementLastEpoch(sys) || 894 _obsPool->getRefSatMapElementLastEpoch(sys) == t_prn() ) { 899 if (prn == refSatLastEpochPrn || refSatLastEpochPrn == t_prn() ) { 895 900 _obsPool->setRefSatChanged(sys, false); 896 901 str = " SET "; … … 906 911 907 912 void t_pppClient::setHistoricalRefSats() { 908 QMapIterator<char, t_pppRefSat*> it(_ obsPool->getRefSatMap());913 QMapIterator<char, t_pppRefSat*> it(_refSatMap); 909 914 while (it.hasNext()) { 910 915 it.next(); … … 914 919 _historicalRefSats[sys].append(prn); 915 920 } 916 }} 921 } 922 } 917 923 918 924 // -
trunk/BNC/src/PPP/pppClient.h
r9386 r9508 8 8 #include "pppOptions.h" 9 9 #include "pppModel.h" 10 #include "pppRefSat.h" 10 11 11 12 class bncAntex; 12 class t_pppRefSat;13 13 14 14 namespace BNC_PPP { … … 79 79 double _offGC; 80 80 std::vector<t_pppSatObs*> _obsRover; 81 QMap<char, t_pppRefSat*> _refSatMap; 81 82 std::ostringstream* _log; 82 83 t_pppOptions* _opt; -
trunk/BNC/src/PPP/pppFilter.cpp
r9504 r9508 72 72 string epoTimeStr = string(_epoTime); 73 73 74 const QMap<char, t_pppRefSat*>& refSatMap = epoch->refSatMap(); 75 74 76 if (OPT->_obsModelType == OPT->DCMcodeBias || 75 77 OPT->_obsModelType == OPT->DCMphaseBias) { 76 78 // Save parameters of epoch before 77 79 _parlist_sav = _parlist; 78 }80 } 79 81 80 82 //-- 81 83 // Set Parameters 82 if (_parlist.set(_epoTime, allObs, _obsPool->getRefSatMap()) != success) {84 if (_parlist.set(_epoTime, allObs, refSatMap) != success) { 83 85 return failure; 84 86 } 85 86 87 const vector<t_pppParam*>& params = _parlist.params(); 87 88 #ifdef BNC_DEBUG_PPP 88 for ( intiPar = 0; iPar < params.size(); iPar++) {89 LOG << " available par " << params[iPar]->toString() << endl;89 for (unsigned iPar = 0; iPar < params.size(); iPar++) { 90 LOG << "t_pppFilter::processEpoch par_cur " << params[iPar]->toString() << endl; 90 91 } 91 92 #endif … … 133 134 for (int iSys = 0; iSys < usedSystems.size(); iSys++) { 134 135 char sys = usedSystems[iSys]; 135 _refPrn = (_obsPool->getRefSatMapElement(sys))->prn();136 _refPrn = refSatMap[sys]->prn(); 136 137 vector<t_pppSatObs*> obsVector; 137 138 for (unsigned jj = 0; jj < allObs.size(); jj++) { … … 170 171 char sys = usedSystems[iSys]; 171 172 if (OPT->_refSatRequired) { 172 _refPrn = (_obsPool->getRefSatMapElement(sys))->prn();173 _refPrn = refSatMap[sys]->prn(); 173 174 } 174 175 else { … … 195 196 // close epoch processing 196 197 // ---------------------- 197 cmpDOP(allObs );198 cmpDOP(allObs, refSatMap); 198 199 _parlist.printResult(_epoTime, _QFlt, _xFlt); 199 200 _lastEpoTimeOK = _epoTime; // remember time of last successful epoch processing 200 if (OPT->_refSatRequired) {201 _obsPool->saveLastEpoRefSats();202 }203 201 return success; 204 202 } … … 596 594 // Compute various DOP Values 597 595 //////////////////////////////////////////////////////////////////////////// 598 void t_pppFilter::cmpDOP(const vector<t_pppSatObs*>& obsVector) { 596 void t_pppFilter::cmpDOP(const vector<t_pppSatObs*>& obsVector, 597 const QMap<char, t_pppRefSat*>& refSatMap) { 599 598 600 599 _dop.reset(); … … 606 605 for (unsigned ii = 0; ii < obsVector.size(); ii++) { 607 606 t_pppSatObs* obs = obsVector[ii]; 608 char sys tem= obs->prn().system();607 char sys = obs->prn().system(); 609 608 t_prn refPrn = t_prn(); 610 609 if (OPT->_refSatRequired) { 611 refPrn = _obsPool->getRefSatMapElement(system)->prn();610 refPrn = refSatMap[sys]->prn(); 612 611 } 613 612 if (obs->isValid() && !obs->outlier()) { … … 678 677 // Compute datum transformation 679 678 //////////////////////////////////////////////////////////////////////////// 680 t_irc t_pppFilter::datumTransformation() { 679 t_irc t_pppFilter::datumTransformation(const QMap<char, t_pppRefSat*>& refSatMap) { 680 681 681 // get last epoch 682 682 t_pppObsPool::t_epoch* epoch = _obsPool->lastEpoch(); 683 683 if (!epoch) { 684 LOG << " !lastEpoch" << endl;684 LOG << "t_pppFilter::datumTransformation: !lastEpoch" << endl; 685 685 return failure; 686 686 } 687 else { 688 LOG.setf(ios::fixed); 689 LOG << string(epoch->epoTime()) << " DATUM TRANSFORMATION " << endl; 690 } 687 _epoTime = epoch->epoTime(); 688 LOG.setf(ios::fixed); 689 LOG << string(_epoTime) << " DATUM TRANSFORMATION " << endl; 691 690 692 691 vector<t_pppSatObs*>& allObs = epoch->obsVector(); 692 693 const QMap<char, t_pppRefSat*>& refSatMapLastEpoch = epoch->refSatMap(); 694 695 bool peseudoObsIono = epoch->pseudoObsIono(); 693 696 694 697 // reset old and set new refSats in last epoch (ambiguities/GIM) 695 698 // ============================================================= 696 if (resetRefSatellitesLastEpoch(allObs ) != true) {699 if (resetRefSatellitesLastEpoch(allObs, refSatMap, refSatMapLastEpoch) != true) { 697 700 LOG << "refsatChange required" << endl; 698 701 return success; … … 705 708 // set AA2 706 709 // ======= 707 if (_parlist.set( epoch->epoTime(), allObs, _obsPool->getRefSatMap()) != success) {710 if (_parlist.set(_epoTime, allObs, refSatMap) != success) { 708 711 return failure; 709 712 } 710 constvector<t_pppParam*>& _params = _parlist.params();713 vector<t_pppParam*>& _params = _parlist.params(); 711 714 unsigned nPar = _parlist.nPar(); 712 715 #ifdef BNC_DEBUG_PPP 713 LOG << " parameters of last epoch" <<endl;716 LOG << " t_pppFilter::datumTransformation par last epoch: " << _params.size() << "/" << nPar << endl; 714 717 for (unsigned iPar = 0; iPar < nPar; iPar++) { 715 LOG << _params[iPar]->toString() << "\t\t" <<endl;718 LOG << _params[iPar]->toString() << "\t\t" endl; 716 719 } 717 720 #endif … … 719 722 for (int iSys = 0; iSys < usedSystems.size(); iSys++) { 720 723 char sys = usedSystems[iSys]; 721 t_prn refPrn = (_obsPool->getRefSatMapElement(sys))->prn();724 t_prn refPrn = refSatMap[sys]->prn(); 722 725 vector<t_pppSatObs*> obsVector; 723 726 for (unsigned jj = 0; jj < allObs.size(); jj++) { … … 731 734 vector<t_lc::type> LCs = OPT->LCs(sys); 732 735 unsigned usedLCs = LCs.size(); 733 if (OPT->_pseudoObsIono && ! epoch->pseudoObsIono()) {736 if (OPT->_pseudoObsIono && !peseudoObsIono) { 734 737 usedLCs -= 1; // GIM not used 735 738 } … … 744 747 maxObs += 1; 745 748 } 746 if (OPT->_pseudoObsIono && epoch->pseudoObsIono()) {749 if (OPT->_pseudoObsIono && peseudoObsIono) { 747 750 maxObs -= 1; // pseudo obs iono with respect to refSat 748 751 } 749 752 Matrix AA(maxObs, nPar); 750 751 753 // Real Observations 752 754 // ----------------- … … 787 789 continue; 788 790 } 789 _datumTrafo->updateIndices(sys, iObs+1); 790 _datumTrafo->prepareAA(AA.SubMatrix(1, iObs+1 , 1, nPar), 2); 791 _datumTrafo->updateIndices(sys, iObs+1); //LOG << "AA Ncols/Nrows: " << AA.Ncols() << "/" << AA.Nrows() << " nPar: " << nPar << endl; //LOG << "AA.SubMatrix(1 .. " << iObs+1 << " , 1 .. " << nPar << ")" << endl; 792 if(_datumTrafo->prepareAA(AA.SubMatrix(1, iObs+1 , 1, nPar), 2) != success) { 793 return failure; 794 } 791 795 } 792 796 _datumTrafo->updateNumObs(); … … 819 823 for (int iSys = 0; iSys < usedSystems.size(); iSys++) { 820 824 char sys = usedSystems[iSys]; 821 t_prn refPrnOld = _obsPool->getRefSatMapElementLastEpoch(sys);822 t_prn refPrnNew = (_obsPool->getRefSatMapElement(sys))->prn();825 t_prn refPrnOld = refSatMapLastEpoch[sys]->prn(); 826 t_prn refPrnNew = refSatMap[sys]->prn(); 823 827 if (refPrnNew != refPrnOld) { 824 t_irc irc = resetAmb( _obsPool->getRefSatMapElementLastEpoch(sys), allObs);828 t_irc irc = resetAmb(refPrnOld, allObs); 825 829 if (OPT->_obsModelType == OPT->DCMcodeBias) { 826 830 if (irc == success) { … … 834 838 // ================= 835 839 _datumTrafo->switchAA(); 840 841 _obsPool->putEpoch(_epoTime, allObs, peseudoObsIono, refSatMap); 836 842 837 843 return success; … … 877 883 // 878 884 ////////////////////////////////////////////////////////////////////////////// 879 bool t_pppFilter::resetRefSatellitesLastEpoch(std::vector<t_pppSatObs*>& obsVector) { 885 bool t_pppFilter::resetRefSatellitesLastEpoch(std::vector<t_pppSatObs*>& obsVector, 886 const QMap<char, t_pppRefSat*>& refSatMap, 887 const QMap<char, t_pppRefSat*>& refSatMapLastEpoch) { 880 888 bool resetRefSat; 881 889 // reference satellite definition per system … … 884 892 resetRefSat = false; 885 893 char sys = usedSystems[iSys]; 886 t_pppRefSat* refSat = _obsPool->getRefSatMapElement(sys); 887 t_prn newPrn = refSat->prn(); 888 t_prn oldPrn = _obsPool->getRefSatMapElementLastEpoch(sys); 894 t_prn newPrn = refSatMap[sys]->prn(); 895 t_prn oldPrn = refSatMapLastEpoch[sys]->prn(); 889 896 #ifdef BNC_DEBUG_PPP 890 LOG << "oldPrn: " << oldPrn.toString() << " => newPrn: " << newPrn.toString() << endl; 897 if (oldPrn != newPrn) { 898 LOG << "oldRef: " << oldPrn.toString() << " => newRef " << newPrn.toString() << endl; 899 } 891 900 #endif 892 901 vector<t_pppSatObs*>::iterator it = obsVector.begin(); … … 896 905 resetRefSat = true; 897 906 satObs->setAsReference(); 898 } 899 else if (satObs->prn() == oldPrn) { 907 } else if (satObs->prn() == oldPrn) { 900 908 satObs->resetReference(); 901 909 } -
trunk/BNC/src/PPP/pppFilter.h
r9504 r9508 26 26 const SymmetricMatrix& Q() const {return _QFlt;} 27 27 28 t_irc datumTransformation( );28 t_irc datumTransformation(const QMap<char, t_pppRefSat*>& refSatMap); 29 29 void initDatumTransformation(const std::vector<t_pppSatObs*>& allObs, bool pseudoObsIono); 30 30 unsigned setTrafoObs(); … … 91 91 _firstRow = _lastRow + 1; 92 92 } 93 _lastRow += maxObsSys; //LOG << sys << " updateIndices: lastRow: " << _lastRow << "\n" ;93 _lastRow += maxObsSys; //LOG << sys << " updateIndices: lastRow: " << _lastRow << "\n" ; 94 94 }; 95 95 … … 120 120 _D21.ReSize(_numPar, _numPar); _D21 = 0.0; 121 121 } 122 voidprepareAA(const Matrix& AA, int ind) {122 t_irc prepareAA(const Matrix& AA, int ind) { 123 123 Matrix* Prep = &_AA2; 124 124 if (ind == 1) { 125 125 Prep = &_AA1; 126 126 } 127 //LOG << "_firstRow: " << _firstRow << " _lastRow: " << _lastRow << " _numPar " << _numPar << std::endl; 128 if (AA.Ncols() > _numPar) { 129 LOG << "t_pppFilter::prepareAA: AA.Ncols() > _numPar: " << AA.Ncols() << " > " << _numPar << std::endl; 130 return failure; 131 } 127 132 Prep->SubMatrix(_firstRow, _lastRow, 1, _numPar) << AA; 133 return success; 128 134 } 129 135 void switchAA() { … … 132 138 t_irc computeTrafoMatrix() { 133 139 if (((_AA2.t() * _AA2)).Determinant() == 0.0) { 134 LOG << " (_AA2.t() * _AA2).inv() is singular" << std::endl;140 LOG << "t_pppFilter::computeTrafoMatrix: (_AA2.t() * _AA2).inv() is singular" << std::endl; 135 141 return failure; 136 142 } … … 174 180 SymmetricMatrix* QSav = 0, ColumnVector* xSav = 0); 175 181 176 void cmpDOP(const std::vector<t_pppSatObs*>& obsVector); 182 void cmpDOP(const std::vector<t_pppSatObs*>& obsVector, 183 const QMap<char, t_pppRefSat*>& refSatMap); 177 184 178 185 void predictCovCrdPart(const SymmetricMatrix& QFltOld); … … 180 187 t_irc addNoiseToIono(char sys); 181 188 182 bool resetRefSatellitesLastEpoch(std::vector<t_pppSatObs*>& obsVector); 189 bool resetRefSatellitesLastEpoch(std::vector<t_pppSatObs*>& obsVector, 190 const QMap<char, t_pppRefSat*>& refSatMap, 191 const QMap<char, t_pppRefSat*>& refSatMapLastEpoch); 183 192 184 193 bncTime _epoTime; -
trunk/BNC/src/PPP/pppObsPool.cpp
r9386 r9508 23 23 ///////////////////////////////////////////////////////////////////////////// 24 24 t_pppObsPool::t_epoch::t_epoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector, 25 bool pseudoObsIono ) {25 bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap) { 26 26 _epoTime = epoTime; 27 27 _pseudoObsIono = pseudoObsIono; … … 30 30 } 31 31 obsVector.clear(); 32 33 QMapIterator<char, t_pppRefSat*> it(refSatMap); 34 while (it.hasNext()) { 35 it.next(); 36 char sys = it.key(); 37 t_pppRefSat* refSat = it.value(); 38 _refSatMap[sys] = new t_pppRefSat(refSat->prn(), refSat->stecValue()); 39 } 40 //refSatMap.clear(); 32 41 } 33 42 … … 38 47 delete _obsVector[ii]; 39 48 } 49 50 QMapIterator<char, t_pppRefSat*> it(_refSatMap); 51 while (it.hasNext()) { 52 it.next(); 53 delete it.value(); 54 } 55 _refSatMap.clear(); 40 56 } 41 57 … … 71 87 _epochs.pop_front(); 72 88 } 73 clearRefSatMap();74 89 } 75 90 … … 101 116 ///////////////////////////////////////////////////////////////////////////// 102 117 void t_pppObsPool::putEpoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector, 103 bool pseudoObsIono) {118 bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap) { 104 119 const unsigned MAXSIZE = 2; 105 106 _epochs.push_back(new t_epoch(epoTime, obsVector, pseudoObsIono)); 120 _epochs.push_back(new t_epoch(epoTime, obsVector, pseudoObsIono, refSatMap)); 107 121 108 122 if (_epochs.size() > MAXSIZE) { -
trunk/BNC/src/PPP/pppObsPool.h
r9386 r9508 18 18 public: 19 19 t_epoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector, 20 bool pseudoObsIono );20 bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap); 21 21 ~t_epoch(); 22 22 std::vector<t_pppSatObs*>& obsVector() {return _obsVector;} 23 23 const std::vector<t_pppSatObs*>& obsVector() const {return _obsVector;} 24 const QMap<char, t_pppRefSat*>& refSatMap() const {return _refSatMap;} 24 25 const bncTime& epoTime() const {return _epoTime;} 25 26 bool pseudoObsIono() const {return _pseudoObsIono;} 26 27 private: 27 28 bncTime _epoTime; 29 bool _pseudoObsIono; 28 30 std::vector<t_pppSatObs*> _obsVector; 29 bool _pseudoObsIono;31 QMap<char, t_pppRefSat*> _refSatMap; 30 32 }; 31 33 … … 37 39 38 40 void putEpoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector, 39 bool pseudoObs );41 bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap); 40 42 41 43 void deleteLastEpoch(); … … 56 58 return 0; 57 59 } 58 }59 60 // RefSatMap of the current epoch61 // ==============================62 void initRefSatMapElement(char system) {_refSatMap[system] = new t_pppRefSat();}63 void clearRefSatMap() {64 QMapIterator<char, t_pppRefSat*> it(_refSatMap);65 while (it.hasNext()) {66 it.next();67 delete it.value();68 }69 _refSatMap.clear();70 }71 QMap<char, t_pppRefSat*> getRefSatMap() {return _refSatMap;}72 t_pppRefSat* getRefSatMapElement(char sys) {return _refSatMap[sys];}73 74 75 // RefSatMap of the last epoch76 // ===========================77 QMap<char, t_prn> getRefSatMapLastEpoch() {return _refSatMapLastEpoch;}78 t_prn getRefSatMapElementLastEpoch(char sys) {return _refSatMapLastEpoch[sys];}79 void setRefSatMapElementLastEpoch(char sys, t_prn prn) {_refSatMapLastEpoch[sys] = prn;}80 void saveLastEpoRefSats() {81 QMapIterator<char, t_pppRefSat*> it(getRefSatMap());82 while (it.hasNext()) {83 it.next();84 t_prn prn = it.value()->prn();85 setRefSatMapElementLastEpoch(prn.system(), prn);86 };87 60 } 88 61 … … 130 103 t_vTec* _vTec; 131 104 std::deque<t_epoch*> _epochs; 132 QMap<char, t_pppRefSat*> _refSatMap;133 105 QMap<char, bool> _refSatChangeRequiredMap; 134 106 QMap<char, bool> _refSatChangedMap; 135 QMap<char, t_prn> _refSatMapLastEpoch;136 107 }; 137 108 -
trunk/BNC/src/PPP/pppParlist.cpp
r9506 r9508 143 143 _sigma0 = old->sigma0(); 144 144 _epoSpec = old->epoSpec(); 145 _x0 = old->x0(); 146 setFirstObsTime(old->firstObsTime()); 147 setLastObsTime(old->lastObsTime()); 145 148 _ambInfo = 0; 146 149 if (_type == t_pppParam::amb) { … … 149 152 _ambInfo->_eleSat = old->_ambInfo->_eleSat; 150 153 _ambInfo->_numEpo = old->_ambInfo->_numEpo; 151 _x0 = x0();152 154 } 153 155 } … … 448 450 if (OPT->_obsModelType == OPT->DCMcodeBias || 449 451 OPT->_obsModelType == OPT->DCMphaseBias) { 450 t_prn refPrn = (refSatMap[par->prn().system()])->prn(); 452 char sys = par->prn().system(); 453 t_prn refPrn = (refSatMap[sys])->prn(); 451 454 if (par->lastObsTime().valid() && 452 455 ((epoTime - par->lastObsTime() > 1.0) || (par->prn() == refPrn))) { … … 475 478 } 476 479 if (remove) { 480 #ifdef BNC_DEBUG_PPP 481 LOG << "remove " << par->toString() << std::endl; 482 #endif 477 483 delete par; 478 484 it = _params.erase(it); … … 519 525 } 520 526 if (remove) { 527 #ifdef BNC_DEBUG_PPP 528 LOG << "remove " << par->toString() << std::endl; 529 #endif 521 530 delete par; 522 531 it = _params.erase(it); … … 711 720 } 712 721 else { 722 #ifdef BNC_DEBUG_PPP 723 LOG << "push_back parReq " << parReq->toString() << std::endl; 724 #endif 713 725 _params.push_back(parReq); 714 726 }
Note:
See TracChangeset
for help on using the changeset viewer.