Changeset 4541 in ntrip for trunk/BNC/src/rinex/reqcanalyze.cpp


Ignore:
Timestamp:
Aug 21, 2012, 6:03:14 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4525 r4541  
    195195  // Loop over all Epochs
    196196  // --------------------
    197   while ( (_currEpo = obsFile->nextEpoch()) != 0) {
    198 
    199     // Loop over all satellites
    200     // ------------------------
    201     for (unsigned iObs = 0; iObs < _currEpo->rnxSat.size(); iObs++) {
    202       const t_rnxObsFile::t_rnxSat& rnxSat = _currEpo->rnxSat[iObs];
    203       t_obs obs;
    204       t_postProcessing::setObsFromRnx(obsFile, _currEpo, rnxSat, obs);
    205 
    206       if (obs.satSys == 'R') {
    207         continue; // TODO: set channel number
    208       }
    209 
    210       QString prn = QString("%1%2").arg(obs.satSys)
    211                                    .arg(obs.satNum, 2, 10, QChar('0'));
    212 
    213       t_satStat& satStat = _satStat[prn];
    214 
    215       satStat.addObs(obs);
    216     }
    217 
    218   } // while (_currEpo)
     197  try {
     198    while ( (_currEpo = obsFile->nextEpoch()) != 0) {
     199 
     200      // Loop over all satellites
     201      // ------------------------
     202      for (unsigned iObs = 0; iObs < _currEpo->rnxSat.size(); iObs++) {
     203        const t_rnxObsFile::t_rnxSat& rnxSat = _currEpo->rnxSat[iObs];
     204        t_obs obs;
     205        t_postProcessing::setObsFromRnx(obsFile, _currEpo, rnxSat, obs);
     206 
     207        if (obs.satSys == 'R') {
     208          continue; // TODO: set channel number
     209        }
     210 
     211        QString prn = QString("%1%2").arg(obs.satSys)
     212                                     .arg(obs.satNum, 2, 10, QChar('0'));
     213 
     214        t_satStat& satStat = _satStat[prn];
     215 
     216        satStat.addObs(obs);
     217      }
     218 
     219    } // while (_currEpo)
     220  }
     221  catch (QString str) {
     222    if (_log) {
     223      *_log << "Exception " << str << endl;
     224    }
     225    else {
     226      qDebug() << str;   
     227    }
     228    return;
     229  }
    219230
    220231  // Analyze the Multipath
Note: See TracChangeset for help on using the changeset viewer.