Changeset 9819 in ntrip for trunk/BNC/src/combination/bnccomb.cpp
- Timestamp:
- Sep 1, 2022, 4:29:40 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/combination/bnccomb.cpp
r9710 r9819 211 211 _rtnetDecoder = 0; 212 212 213 connect(this, SIGNAL(newMessage(QByteArray,bool)), 214 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 215 216 connect(BNC_CORE, SIGNAL(providerIDChanged(QString)), 217 this, SLOT(slotProviderIDChanged(QString))); 218 219 connect(BNC_CORE, SIGNAL(newOrbCorrections(QList<t_orbCorr>)), 220 this, SLOT(slotNewOrbCorrections(QList<t_orbCorr>))); 221 222 connect(BNC_CORE, SIGNAL(newClkCorrections(QList<t_clkCorr>)), 223 this, SLOT(slotNewClkCorrections(QList<t_clkCorr>))); 224 225 connect(BNC_CORE, SIGNAL(newCodeBiases(QList<t_satCodeBias>)), 226 this, SLOT(slotNewCodeBiases(QList<t_satCodeBias>))); 213 connect(this, SIGNAL(newMessage(QByteArray,bool)), BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 214 connect(BNC_CORE, SIGNAL(providerIDChanged(QString)), this, SLOT(slotProviderIDChanged(QString))); 215 connect(BNC_CORE, SIGNAL(newOrbCorrections(QList<t_orbCorr>)), this, SLOT(slotNewOrbCorrections(QList<t_orbCorr>))); 216 connect(BNC_CORE, SIGNAL(newClkCorrections(QList<t_clkCorr>)), this, SLOT(slotNewClkCorrections(QList<t_clkCorr>))); 217 connect(BNC_CORE, SIGNAL(newCodeBiases(QList<t_satCodeBias>)), this, SLOT(slotNewCodeBiases(QList<t_satCodeBias>))); 227 218 228 219 // Combination Method … … 561 552 // Check satellite code biases 562 553 // ---------------------------- 563 if (!_satCodeBiases.contains(acName)) { 564 delete newCorr; 565 continue; 566 } 567 else { 554 if (_satCodeBiases.contains(acName)) { 568 555 QMap<t_prn, t_satCodeBias>& storage = _satCodeBiases[acName]; 569 if (!storage.contains(clkCorr._prn)) { 570 delete newCorr; 571 continue; 572 } 573 else { 556 if (storage.contains(clkCorr._prn)) { 574 557 newCorr->_satCodeBias = storage[clkCorr._prn]; 575 558 QMap<t_frequency::type, double> codeBiasesRefSig; … … 586 569 } 587 570 } 588 if (codeBiasesRefSig.size() < 2) { 589 delete newCorr; 590 continue; 591 } 592 map<t_frequency::type, double> codeCoeff; 593 double channel = double(newCorr->_eph->slotNum()); 594 cmbRefSig::coeff(sys, cmbRefSig::cIF, channel, codeCoeff); 595 map<t_frequency::type, double>::const_iterator it; 596 for (it = codeCoeff.begin(); it != codeCoeff.end(); it++) { 597 t_frequency::type frqType = it->first; 598 newCorr->_codeBiasIF += it->second * codeBiasesRefSig[frqType]; 571 if (codeBiasesRefSig.size() == 2) { 572 map<t_frequency::type, double> codeCoeff; 573 double channel = double(newCorr->_eph->slotNum()); 574 cmbRefSig::coeff(sys, cmbRefSig::cIF, channel, codeCoeff); 575 map<t_frequency::type, double>::const_iterator it; 576 for (it = codeCoeff.begin(); it != codeCoeff.end(); it++) { 577 t_frequency::type frqType = it->first; 578 newCorr->_satCodeBiasIF += it->second * codeBiasesRefSig[frqType]; 579 } 599 580 } 600 581 newCorr->_satCodeBias._bias.clear(); … … 1050 1031 } 1051 1032 1052 ll(iObs) = (corr->_clkCorr._dClk * t_CST::c - corr->_codeBiasIF) - DotProduct(AA.Row(iObs), x0); 1033 ll(iObs) = (corr->_clkCorr._dClk * t_CST::c - corr->_satCodeBiasIF) - DotProduct(AA.Row(iObs), x0); 1034 1053 1035 } 1054 1036
Note:
See TracChangeset
for help on using the changeset viewer.