Changeset 10599 in ntrip for trunk/BNC/src/combination
- Timestamp:
- Jan 31, 2025, 10:30:08 AM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/combination/bnccomb.cpp
r10548 r10599 238 238 int nextPar = 0; 239 239 char sys = itSys.key(); 240 unsigned maxPrn = itSys.value(); 241 unsigned flag = 0; 242 if (sys == 'E') { 243 flag = 1; 244 } 240 int maxPrn = itSys.value(); 245 241 // AC 246 242 QListIterator<cmbAC*> itAc(_ACs); … … 248 244 cmbAC* AC = itAc.next(); 249 245 _params[sys].push_back(new cmbParam(cmbParam::offACgnss, ++nextPar, AC->name, "")); 250 for (unsigned iGnss = 1; iGnss <= maxPrn; iGnss++) { 246 for (int iGnss = 1; iGnss <= maxPrn; iGnss++) { 247 int flag = t_corrSSR::getSsrNavTypeFlag(sys, iGnss); 251 248 QString prn = QString("%1%2_%3").arg(sys).arg(iGnss, 2, 10, QChar('0')).arg(flag); 252 249 _params[sys].push_back(new cmbParam(cmbParam::offACSat, ++nextPar, AC->name, prn)); 253 250 } 254 251 } 255 for (unsigned iGnss = 1; iGnss <= maxPrn; iGnss++) { 252 for (int iGnss = 1; iGnss <= maxPrn; iGnss++) { 253 int flag = t_corrSSR::getSsrNavTypeFlag(sys, iGnss); 256 254 QString prn = QString("%1%2_%3").arg(sys).arg(iGnss, 2, 10, QChar('0')).arg(flag); 257 255 _params[sys].push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn)); … … 680 678 const t_clkCorr& clkCorr = clkCorrVec[ii]; 681 679 QString staID(clkCorr._staID.c_str()); 682 QString prn(clkCorr._prn.toInternalString().c_str()); 680 QString prnStr(clkCorr._prn.toInternalString().c_str()); 683 681 char sys = clkCorr._prn.system(); 684 682 … … 700 698 // --------------------- 701 699 _newCorr = new cmbCorr(); 702 _newCorr->_prn = prn; 700 _newCorr->_prn = prnStr; 703 701 _newCorr->_time = clkCorr._time; 704 702 _newCorr->_iod = clkCorr._iod; … … 727 725 // Check the Ephemeris 728 726 //-------------------- 729 t_eph* ephLast = _ephUser.ephLast(prn); 730 t_eph* ephPrev = _ephUser.ephPrev(prn); 727 t_eph* ephLast = _ephUser.ephLast(prnStr); 728 t_eph* ephPrev = _ephUser.ephPrev(prnStr); 731 729 if (ephLast == 0) { 732 730 #ifdef BNC_DEBUG_CMB 733 emit newMessage("bncComb: eph not found for " + prn.mid(0,3).toLatin1(), true); 731 emit newMessage("bncComb: eph not found for " + prnStr.mid(0,3).toLatin1(), true); 734 732 #endif 735 733 delete _newCorr; _newCorr = 0; … … 741 739 ephLast->checkState() == t_eph::unhealthy) { 742 740 #ifdef BNC_DEBUG_CMB 743 emit newMessage("bncComb: ephLast not ok (checkState: " + ephLast->checkStateToString().toLatin1() + ") for " + prn.mid(0,3).toLatin1(), true); 741 emit newMessage("bncComb: ephLast not ok (checkState: " + ephLast->checkStateToString().toLatin1() + ") for " + prnStr.mid(0,3).toLatin1(), true); 744 742 #endif 745 743 delete _newCorr; _newCorr = 0; … … 759 757 else { 760 758 #ifdef BNC_DEBUG_CMB 761 emit newMessage("bncComb: eph not found for " + prn.mid(0,3).toLatin1() + 759 emit newMessage("bncComb: eph not found for " + prnStr.mid(0,3).toLatin1() + 762 760 QString(" with IOD %1").arg(_newCorr->_iod).toLatin1(), true); 763 761 #endif … … 806 804 bool available = false; 807 805 while (itCorr.hasNext()) { 808 cmbCorr* corr = itCorr.next(); 809 QString prn 806 cmbCorr* corr = itCorr.next(); 807 QString prnStr = corr->_prn; 810 808 QString acName = corr->_acName; 811 809 if (_newCorr->_acName == acName && 812 _newCorr->_prn == prn) { 810 _newCorr->_prn == prnStr) { 813 811 available = true; 814 812 } … … 1263 1261 } 1264 1262 } 1265 unsigned flag = 0;1266 if (sys == 'E') {1267 flag = 1;1268 }1269 1263 // if (sys == 'R') { 1270 1264 // return success; … … 1273 1267 // GNSS 1274 1268 for (unsigned iGnss = 1; iGnss <= _cmbSysPrn[sys]; iGnss++) { 1269 int flag = t_corrSSR::getSsrNavTypeFlag(sys, iGnss); 1275 1270 QString prn = QString("%1%2_%3").arg(sys).arg(iGnss, 2, 10, QChar('0')).arg(flag); 1276 1271 ++iCond; … … 1311 1306 QMutableVectorIterator<cmbCorr*> it(corrs(sys)); 1312 1307 while (it.hasNext()) { 1313 cmbCorr* corr = it.next(); 1314 QString prn = corr->_prn; 1308 cmbCorr* corr = it.next(); 1309 QString prnStr = corr->_prn; 1315 1310 bool foundMaster = false; 1316 1311 QVectorIterator<cmbCorr*> itHlp(corrs(sys)); … … 1319 1314 QString prnHlp = corrHlp->_prn; 1320 1315 QString ACHlp = corrHlp->_acName; 1321 if (ACHlp == _masterOrbitAC[sys] && prn == prnHlp) { 1316 if (ACHlp == _masterOrbitAC[sys] && prnStr == prnHlp) { 1322 1317 foundMaster = true; 1323 1318 break; … … 1638 1633 while (it.hasNext()) { 1639 1634 string prnStr = it.next().toLatin1().data(); 1640 if (prnStr == prn.toString() || prnStr == prn.toString().substr(0,1)) { 1635 if (prnStr == prn.toString() || // prn 1636 prnStr == prn.toString().substr(0,1)) { // sys 1641 1637 return true; 1642 1638 }
Note:
See TracChangeset
for help on using the changeset viewer.