Changeset 3473 in ntrip


Ignore:
Timestamp:
Oct 14, 2011, 4:58:03 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r3472 r3473  
    776776                                        QMap<QString, t_corr*>& resCorr) {
    777777
    778   return failure;
    779 }
     778  int iObs = 0;
     779  QVectorIterator<cmbCorr*> itCorr(corrs());
     780  while (itCorr.hasNext()) {
     781    cmbCorr* corr = itCorr.next();
     782    QString  prn  = corr->prn;
     783    switchToLastEph(_eph[prn]->last, corr);
     784    ++iObs;
     785
     786    if (corr->acName == _masterOrbitAC && resCorr.find(prn) == resCorr.end()) {
     787      resCorr[prn] = new t_corr(*corr);
     788    }
     789  }
     790
     791  if (iObs == 0) {
     792    return failure;
     793  }
     794  else {
     795    return success;
     796  }
     797}
Note: See TracChangeset for help on using the changeset viewer.