Changeset 3489 in ntrip


Ignore:
Timestamp:
Oct 31, 2011, 9:12:48 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3488 r3489  
    10001000t_irc bncComb::checkOrbits() {
    10011001
    1002   const double MAX_DISPLACEMENT = 0.10;
     1002  const double MAX_DISPLACEMENT = 0.20;
    10031003
    10041004  while (true) {
     
    10061006    // Compute Mean Corrections for all Satellites
    10071007    // -------------------------------------------
     1008    QMap<QString, int>          numCorr;
    10081009    QMap<QString, ColumnVector> meanRao;
    10091010    QVectorIterator<cmbCorr*> it(corrs());
     
    10191020        meanRao[prn].Rows(1,3) += corr->rao;
    10201021        meanRao[prn](4)        += 1;
     1022      }
     1023      if (numCorr.find(prn) == numCorr.end()) {
     1024        numCorr[prn] = 1;
     1025      }
     1026      else {
     1027        numCorr[prn] += 1;
    10211028      }
    10221029      switchToLastEph(_eph[prn]->last, corr);
     
    10541061      cmbCorr* corr = im.next();
    10551062      QString  prn  = corr->prn;
    1056       if (corr == maxDiff[prn]) {
     1063      cout << prn.toAscii().data() << " " << numCorr[prn] << endl;
     1064      if      (numCorr[prn] < 2) {
     1065        im.remove();
     1066      }
     1067      else if (corr == maxDiff[prn]) {
    10571068        double norm = corr->diffRao.norm_Frobenius();
    10581069        if (norm > MAX_DISPLACEMENT) {
Note: See TracChangeset for help on using the changeset viewer.