- Timestamp:
- Sep 1, 2022, 4:29:40 PM (2 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r9772 r9819 186 186 QByteArray msgLocal = msg; 187 187 if (msg.indexOf('\n') == 0) { 188 *_logStream << endl;188 *_logStream << "\r\n"; 189 189 msgLocal = msg.mid(1); 190 190 } 191 191 *_logStream << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toLatin1().data(); 192 *_logStream << msgLocal.data() << endl;192 *_logStream << msgLocal.data() << "\r\n"; 193 193 _logStream->flush(); 194 194 _logFile->flush(); -
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 -
trunk/BNC/src/combination/bnccomb.h
r9695 r9819 84 84 public: 85 85 cmbCorr() { 86 _eph = 0;87 _iod = 0;88 _dClkResult = 0.0;89 _ codeBiasIF= 0.0;86 _eph = 0; 87 _iod = 0; 88 _dClkResult = 0.0; 89 _satCodeBiasIF = 0.0; 90 90 } 91 91 ~cmbCorr() {} … … 98 98 t_satCodeBias _satCodeBias; 99 99 QString _acName; 100 double _ codeBiasIF;100 double _satCodeBiasIF; 101 101 double _dClkResult; 102 102 ColumnVector _diffRao;
Note:
See TracChangeset
for help on using the changeset viewer.