Changeset 4776 in ntrip for trunk


Ignore:
Timestamp:
Oct 26, 2012, 6:06:46 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTRover/bncrtrover.cpp

    r4775 r4776  
    244244  satObs._satellite._system = obsBnc.satSys;
    245245  satObs._satellite._number = obsBnc.satNum;
    246   cout << obsBnc.satSys << setw(2) << obsBnc.satNum << endl;
     246  QMap<QByteArray, rtrover_obs> allObs;
    247247  for (int iEntry = 0; iEntry < GNSSENTRY_NUMBER; ++iEntry) {
    248     cout << iEntry << " " << obsBnc._measdata[iEntry] << " "
    249          << obsBnc.rnxStr(iEntry).toAscii().data() << endl;
     248    if (obsBnc._measdata[iEntry] != 0.0) {
     249      QByteArray rnxStr = obsBnc.rnxStr(iEntry).toAscii();
     250      if (rnxStr.length() == 3) {
     251        QByteArray codeType = rnxStr.mid(1);
     252        if (!allObs.contains(codeType)) {
     253          allObs[codeType]._code    = 0.0;
     254          allObs[codeType]._phase   = 0.0;
     255          allObs[codeType]._doppler = 0.0;
     256          allObs[codeType]._snr     = 0.0;
     257        }
     258        if      (rnxStr[0] == 'C') {
     259          allObs[codeType]._code    = obsBnc._measdata[iEntry];
     260        }
     261        else if (rnxStr[0] == 'L') {
     262          allObs[codeType]._phase   = obsBnc._measdata[iEntry];
     263        }
     264        else if (rnxStr[0] == 'D') {
     265          allObs[codeType]._doppler = obsBnc._measdata[iEntry];
     266        }
     267        else if (rnxStr[0] == 'S') {
     268          allObs[codeType]._snr     = obsBnc._measdata[iEntry];
     269        }
     270      }
     271    }
    250272  }
    251273}
Note: See TracChangeset for help on using the changeset viewer.