Changeset 10251 in ntrip for trunk/BNC/src/PPP/pppSatObs.cpp
- Timestamp:
- Nov 20, 2023, 10:23:42 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppSatObs.cpp
r10231 r10251 46 46 _stecSat = 0.0; 47 47 _signalPriorities = QString::fromStdString(OPT->_signalPriorities); 48 if (!_signalPriorities.size()) {49 _signalPriorities = "G:12&CWPSLX R:12&CP E:1&CBX E:5&QIX C:26&IQX";50 }51 52 48 for (unsigned ii = 0; ii < t_frequency::max; ii++) { 53 49 _obs[ii] = 0; … … 66 62 // 67 63 //////////////////////////////////////////////////////////////////////////// 68 void t_pppSatObs::prepareObs(const t_satObs& pppSatObs) { 64 void t_pppSatObs::prepareObs(const t_satObs& pppSatObs) {//cout << "SATELLITE: " << _prn.toString() << endl; 69 65 70 66 _model.reset(); 67 68 std::vector<char> bb = OPT->frqBands(_prn.system()); 69 char frqNum1 = '0'; 70 if (bb.size() >= 1) { 71 frqNum1 = bb[0]; 72 } 73 char frqNum2 = '0'; 74 if (bb.size() == 2) { 75 frqNum2 = bb[1]; 76 } 71 77 72 78 // Select pseudo-ranges and phase observations … … 74 80 QStringList priorList = _signalPriorities.split(" ", QString::SkipEmptyParts); 75 81 string preferredAttrib; 76 char obsSys = pppSatObs._prn.system(); //cout << "SATELLITE: " << pppSatObs._prn.toString() << endl;77 82 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { 78 83 t_frequency::type frqType = static_cast<t_frequency::type>(iFreq); 79 84 char frqSys = t_frequency::toString(frqType)[0]; //cout << "frqSys: " << frqSys << endl; 80 85 char frqNum = t_frequency::toString(frqType)[1]; //cout << "frqNum: " << frqNum << endl; 81 if (obsSys != frqSys) { 86 if (frqSys != _prn.system()) { 87 continue; 88 } 89 if (frqNum != frqNum1 && 90 frqNum != frqNum2 ) { 82 91 continue; 83 92 } … … 100 109 //cout << "observation2char: " << obs->_rnxType2ch << " vs. " << obsType.toStdString().c_str()<< endl; 101 110 if (obs->_rnxType2ch == obsType.toStdString() && 102 obs->_codeValid && obs->_code &&111 obs->_codeValid && obs->_code && 103 112 obs->_phaseValid && obs->_phase) { 104 113 _obs[iFreq] = new t_frqObs(*obs); //cout << "================> newObs: " << obs->_rnxType2ch <<endl; … … 112 121 // Used frequency types 113 122 // -------------------- 114 _fType1 = t_ lc::toFreq(_prn.system(),t_lc::l1);115 _fType2 = t_ lc::toFreq(_prn.system(),t_lc::l2);123 _fType1 = t_frqBand::toFreq(_prn.system(), frqNum1); 124 _fType2 = t_frqBand::toFreq(_prn.system(), frqNum2); 116 125 117 126 // Check whether all required frequencies available … … 524 533 } 525 534 const t_frqObs* obs = _obs[iFreq]; 526 if (obs && obs->_rnxType2ch == bias._rnxType2ch) { 535 if (obs && 536 obs->_rnxType2ch == bias._rnxType2ch) { 527 537 _model._codeBias[iFreq] = bias._value; 528 538 } … … 551 561 } 552 562 const t_frqObs* obs = _obs[iFreq]; 553 if (obs && obs->_rnxType2ch == bias._rnxType2ch) { 563 if (obs && 564 obs->_rnxType2ch == bias._rnxType2ch) { 554 565 _model._phaseBias[iFreq] = bias._value; 555 566 } … … 606 617 _model._set = true; 607 618 608 //printModel();619 printModel(); 609 620 610 621 return success; … … 619 630 620 631 << "\n======================= " << endl 621 << "PPP STRATEGY : " << OPT->_obsmodelTypeStr.at((int)OPT->_obsModelType).toLocal8Bit().constData()632 << "PPP " 622 633 << ((OPT->_pseudoObsIono) ? " with pseudo-observations for STEC" : "") << endl 623 634 << "RHO : " << setw(12) << setprecision(3) << _model._rho << endl … … 701 712 t_frequency::type tFreq = it->first; 702 713 dispPart += it->second * (_model._antPCO[tFreq] - _model._codeBias[tFreq]); 703 if (OPT->PPP RTK) {714 if (OPT->PPP_RTK) { 704 715 dispPart += it->second * (_model._ionoCodeDelay[tFreq]); 705 716 } … … 709 720 dispPart += it->second * (_model._antPCO[tFreq] - _model._phaseBias[tFreq] + 710 721 _model._windUp * t_CST::lambda(tFreq, _channel)); 711 if (OPT->PPP RTK) {722 if (OPT->PPP_RTK) { 712 723 dispPart += it->second * (- _model._ionoCodeDelay[tFreq]); 713 724 }
Note:
See TracChangeset
for help on using the changeset viewer.