Changeset 3452 in ntrip for trunk/BNC


Ignore:
Timestamp:
Sep 22, 2011, 6:53:59 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3451 r3452  
    375375  }
    376376
     377  // Check Number of Observations per Satellite
     378  // ------------------------------------------
     379  QMap<QString, int> numObs;
     380  for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) {
     381    QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0'));
     382    numObs[prn] = 0;
     383    QVectorIterator<cmbCorr*> itCorr(corrs());
     384    while (itCorr.hasNext()) {
     385      cmbCorr* corr = itCorr.next();
     386      if (corr->prn == prn) {
     387        ++numObs[prn];
     388      }
     389    }
     390  }
     391
    377392  // Prediction Step
    378393  // ---------------
     
    410425    ++iObs;
    411426
    412     if (resCorr.find(prn) == resCorr.end()) {
     427    if (numObs[prn] >= 3 && resCorr.find(prn) == resCorr.end()) {
    413428      resCorr[prn] = new t_corr(*corr);
    414429    }
Note: See TracChangeset for help on using the changeset viewer.