Changeset 6579 in ntrip


Ignore:
Timestamp:
Feb 4, 2015, 1:05:32 PM (9 years ago)
Author:
stuerze
Message:

consider type C,L,D,D in scanRtcm()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncgetthread.cpp

    r6137 r6579  
    648648
    649649    if ( _miscMount == _staID || _miscMount == "ALL" ) {
    650 
    651650      // RTCM message types
    652651      // ------------------
     
    663662        bool allFound = true;
    664663        for (unsigned iFrq = 0; iFrq < obs._obs.size(); iFrq++) {
    665           QString rnxStr(obs._obs[iFrq]->_rnxType2ch.c_str());
    666           if (rnxTypes.indexOf(rnxStr) == -1) {
    667             allFound = false;
    668             rnxTypes << rnxStr;
     664          if (obs._obs[iFrq]->_codeValid) {
     665            QString rnxStr('C');
     666            rnxStr.append(obs._obs[iFrq]->_rnxType2ch.c_str());
     667            if (rnxTypes.indexOf(rnxStr) == -1) {
     668              rnxTypes.push_back(rnxStr);
     669              allFound = false;
     670            }
     671          }
     672          if (obs._obs[iFrq]->_phaseValid) {
     673            QString rnxStr('L');
     674            rnxStr.append(obs._obs[iFrq]->_rnxType2ch.c_str());
     675            if (rnxTypes.indexOf(rnxStr) == -1) {
     676              rnxTypes.push_back(rnxStr);
     677              allFound = false;
     678            }
     679          }
     680          if (obs._obs[iFrq]->_dopplerValid){
     681            QString rnxStr('D');
     682            rnxStr.append(obs._obs[iFrq]->_rnxType2ch.c_str());
     683            if (rnxTypes.indexOf(rnxStr) == -1) {
     684              rnxTypes.push_back(rnxStr);
     685              allFound = false;
     686            }
     687          }
     688          if (obs._obs[iFrq]->_snrValid){
     689            QString rnxStr('S');
     690            rnxStr.append(obs._obs[iFrq]->_rnxType2ch.c_str());
     691            if (rnxTypes.indexOf(rnxStr) == -1) {
     692              rnxTypes.push_back(rnxStr);
     693              allFound = false;
     694            }
    669695          }
    670696        }
     
    672698          QString msg;
    673699          QTextStream str(&msg);
    674           str << obs._prn.system() << "    " << rnxTypes.size() << "  ";
     700          QString s;
     701          str << obs._prn.system() << "    " << s.sprintf("%2d", rnxTypes.size()) << "  ";
    675702          for (int iType = 0; iType < rnxTypes.size(); iType++) {
    676703            str << " " << rnxTypes[iType];
Note: See TracChangeset for help on using the changeset viewer.