Changeset 9548 in ntrip for trunk/BNC/src
- Timestamp:
- Nov 18, 2021, 4:55:06 PM (3 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r9545 r9548 507 507 // 508 508 ////////////////////////////////////////////////////////////////////////////// 509 void t_pppClient::finish(t_irc irc, int ind) { //LOG << "t_pppClient::finish(" << irc << ") " << ind << endl;509 void t_pppClient::finish(t_irc irc, int ind) { //LOG << "t_pppClient::finish(" << irc << ") " << ind << endl; 510 510 511 511 clearObs(); … … 606 606 if(_filter->datumTransformation(_refSatMap) != success) { 607 607 LOG << "t_pppFilter::datumTransformation() != success" << endl; 608 reset(); 608 609 return finish(failure,1); 609 610 } … … 915 916 t_prn prn = it.value()->prn(); 916 917 char sys = prn.system(); 917 if (_obsPool->refSatChangeRequired(sys)) {918 if (_obsPool->refSatChangeRequired(sys)) { 918 919 _historicalRefSats[sys].append(prn); 919 920 } … … 923 924 // 924 925 ////////////////////////////////////////////////////////////////////////////// 925 void t_pppClient::reset() { 926 void t_pppClient::reset() {LOG << "t_pppClient::reset()" << endl; 926 927 927 928 // to delete old orbit and clock corrections -
trunk/BNC/src/PPP/pppFilter.cpp
r9545 r9548 249 249 const t_lc::type tLC = LCs[jj]; 250 250 if (tLC == t_lc::GIM) {continue;} 251 if (tLC == t_lc::Tz0) {continue;}252 251 ++iObs; 253 252 usedObs.push_back(obs); … … 683 682 const QMap<char, t_pppRefSat*>& refSatMapLastEpoch = epoch->refSatMap(); 684 683 685 bool p eseudoObsIono = epoch->pseudoObsIono();684 bool pseudoObsIono = epoch->pseudoObsIono(); 686 685 687 686 // reset old and set new refSats in last epoch (ambiguities/GIM) 688 687 // ============================================================= 689 688 if (resetRefSatellitesLastEpoch(allObs, refSatMap, refSatMapLastEpoch) != true) { 690 LOG << "datumTransformation: re fsatChange required" << endl;691 return success;689 LOG << "datumTransformation: resetRefSatellitesLastEpoch != success" << endl; 690 return failure; 692 691 } 693 692 694 693 if (OPT->_obsModelType == OPT->UncombPPP) { 695 _obsPool->putEpoch(_epoTime, allObs, p eseudoObsIono, refSatMap);694 _obsPool->putEpoch(_epoTime, allObs, pseudoObsIono, refSatMap); 696 695 return success; 697 696 } … … 724 723 vector<t_lc::type> LCs = OPT->LCs(sys); 725 724 unsigned usedLCs = LCs.size(); 726 if (OPT->_pseudoObsIono && !p eseudoObsIono) {725 if (OPT->_pseudoObsIono && !pseudoObsIono) { 727 726 usedLCs -= 1; // GIM not used 728 727 } … … 730 729 unsigned maxObs = obsVector.size() * usedLCs; 731 730 732 if (OPT->_pseudoObsIono && p eseudoObsIono) {731 if (OPT->_pseudoObsIono && pseudoObsIono) { 733 732 maxObs -= 1; // pseudo obs iono with respect to refSat 734 733 } … … 747 746 const t_lc::type tLC = LCs[jj]; 748 747 if (tLC == t_lc::GIM) {continue;} 749 if (tLC == t_lc::Tz0) {continue;}750 748 ++iObs; 751 749 for (unsigned iPar = 0; iPar < nPar; iPar++) { … … 769 767 // ==================== 770 768 #ifdef BNC_DEBUG_PPP 771 772 769 //LOG << "AA1\n"; _datumTrafo->printMatrix(_datumTrafo->AA1(), _datumTrafo->numObs(), _datumTrafo->numPar()); 770 //LOG << "AA2\n"; _datumTrafo->printMatrix(_datumTrafo->AA2(), _datumTrafo->numObs(), _datumTrafo->numPar()); 773 771 #endif 774 772 if(_datumTrafo->computeTrafoMatrix() != success) { … … 776 774 } 777 775 #ifdef BNC_DEBUG_PPP 778 776 //LOG << "D21" << endl; _datumTrafo->printMatrix(_datumTrafo->D21(), _datumTrafo->numObs(), _datumTrafo->numPar()); 779 777 #endif 780 778 ColumnVector xFltOld = _xFlt; … … 809 807 _datumTrafo->switchAA(); 810 808 811 _obsPool->putEpoch(_epoTime, allObs, p eseudoObsIono, refSatMap);809 _obsPool->putEpoch(_epoTime, allObs, pseudoObsIono, refSatMap); 812 810 813 811 return success; -
trunk/BNC/src/PPP/pppParlist.cpp
r9545 r9548 183 183 switch (_type) { 184 184 case crdX: 185 if (tLC == t_lc::GIM || tLC == t_lc::Tz0) {return 0.0;}185 if (tLC == t_lc::GIM) {return 0.0;} 186 186 return (sta->xyzApr()[0] - obs->xc()[0]) / rhoV.NormFrobenius(); 187 187 case crdY: 188 if (tLC == t_lc::GIM || tLC == t_lc::Tz0) {return 0.0;}188 if (tLC == t_lc::GIM) {return 0.0;} 189 189 return (sta->xyzApr()[1] - obs->xc()[1]) / rhoV.NormFrobenius(); 190 190 case crdZ: 191 if (tLC == t_lc::GIM || tLC == t_lc::Tz0) {return 0.0;}191 if (tLC == t_lc::GIM) {return 0.0;} 192 192 return (sta->xyzApr()[2] - obs->xc()[2]) / rhoV.NormFrobenius(); 193 193 case clkR: 194 if (tLC == t_lc::GIM || tLC == t_lc::Tz0) {return 0.0;}194 if (tLC == t_lc::GIM) {return 0.0;} 195 195 return 1.0; 196 196 case offGR: 197 if (tLC == t_lc::GIM || tLC == t_lc::Tz0) {return 0.0;}197 if (tLC == t_lc::GIM) {return 0.0;} 198 198 return (obs->prn().system() == 'R') ? 1.0 : 0.0; 199 199 case offGE: 200 if (tLC == t_lc::GIM || tLC == t_lc::Tz0) {return 0.0;}200 if (tLC == t_lc::GIM) {return 0.0;} 201 201 return (obs->prn().system() == 'E') ? 1.0 : 0.0; 202 202 case offGC: 203 if (tLC == t_lc::GIM || tLC == t_lc::Tz0) {return 0.0;}203 if (tLC == t_lc::GIM) {return 0.0;} 204 204 return (obs->prn().system() == 'C') ? 1.0 : 0.0; 205 205 case amb: 206 if (tLC == t_lc::GIM || tLC == t_lc::Tz0) {return 0.0;}206 if (tLC == t_lc::GIM) {return 0.0;} 207 207 else if ((OPT->_obsModelType == OPT->IF) || 208 208 (OPT->_obsModelType == OPT->PPPRTK) || … … 232 232 if (tLC == t_lc::GIM) { 233 233 return 0.0; 234 }235 else if (tLC == t_lc::Tz0) {236 return 1.0;237 234 } 238 235 else { … … 544 541 par->type() == t_pppParam::pBiasG1 || 545 542 par->type() == t_pppParam::pBiasG2) && !usedSystems().contains('G')) { 546 delete par;547 543 #ifdef BNC_DEBUG_PPP 548 544 LOG << "remove1 " << par->toString() << std::endl; 549 545 #endif 550 it = _params.erase(it); 546 delete par; 547 it = _params.erase(it); 551 548 } 552 549 else if ((par->type() == t_pppParam::cBiasR1 || … … 554 551 par->type() == t_pppParam::pBiasR1 || 555 552 par->type() == t_pppParam::pBiasR2) && !usedSystems().contains('R')) { 556 delete par;557 553 #ifdef BNC_DEBUG_PPP 558 554 LOG << "remove1 " << par->toString() << std::endl; 559 555 #endif 560 it = _params.erase(it); 556 delete par; 557 it = _params.erase(it); 561 558 } 562 559 else if ((par->type() == t_pppParam::cBiasE1 || … … 564 561 par->type() == t_pppParam::pBiasE1 || 565 562 par->type() == t_pppParam::pBiasE2) && !usedSystems().contains('E')) { 566 delete par;567 563 #ifdef BNC_DEBUG_PPP 568 564 LOG << "remove1 " << par->toString() << std::endl; 569 565 #endif 570 it = _params.erase(it); 566 delete par; 567 it = _params.erase(it); 571 568 } 572 569 else if ((par->type() == t_pppParam::cBiasC1 || 573 570 par->type() == t_pppParam::cBiasC2 || 574 571 par->type() == t_pppParam::pBiasC1 || 575 par->type() == t_pppParam::pBiasG2) && !usedSystems().contains('C')) { 576 delete par; 572 par->type() == t_pppParam::pBiasC2) && !usedSystems().contains('C')) { 577 573 #ifdef BNC_DEBUG_PPP 578 574 LOG << "remove1 " << par->toString() << std::endl; 579 575 #endif 580 it = _params.erase(it); 576 delete par; 577 it = _params.erase(it); 581 578 } 582 579 else { -
trunk/BNC/src/PPP/pppSatObs.cpp
r9539 r9548 93 93 for (unsigned ii = 0; ii < OPT->LCs(_prn.system()).size(); ii++) { 94 94 t_lc::type tLC = OPT->LCs(_prn.system())[ii]; 95 if (tLC == t_lc::GIM || tLC == t_lc::Tz0) {continue;}95 if (tLC == t_lc::GIM) {continue;} 96 96 if (!isValid(tLC)) { 97 97 _valid = false; … … 191 191 return; 192 192 case t_lc::GIM: 193 case t_lc::Tz0:194 193 case t_lc::dummy: 195 194 case t_lc::maxLc: … … 222 221 return _stecRefSat; 223 222 } 224 }225 226 if (tLC == t_lc::Tz0) {227 return _model._tropo0;228 223 } 229 224 … … 310 305 311 306 retVal = sqrt(retVal); 312 307 /* 313 308 // De-Weight GLONASS 314 309 // ----------------- … … 322 317 retVal *= 2.0; 323 318 } 324 319 */ 325 320 // Elevation-Dependent Weighting 326 321 // ----------------------------- … … 358 353 359 354 retVal = sqrt(retVal); 360 355 /* 361 356 // De-Weight GLONASS 362 357 // ----------------- 363 358 if (_prn.system() == 'R' && (t_lc::includesCode(tLC) || t_lc::includesPhase(tLC))) { 364 retVal *= 2.0;359 retVal *= 5.0; 365 360 } 366 361 … … 370 365 retVal *= 2.0; 371 366 } 372 367 */ 373 368 374 369 return retVal; … … 645 640 cmpValue = _stecSat; 646 641 } 647 else if (tLC == t_lc::Tz0) {648 cmpValue = _model._tropo0;649 }650 642 else { 651 643 // Non-Dispersive Part
Note:
See TracChangeset
for help on using the changeset viewer.