Changeset 3409 in ntrip for trunk/BNC


Ignore:
Timestamp:
Sep 2, 2011, 8:48:16 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r3408 r3409  
    5959const double   MINELE                = 10.0 * M_PI / 180.0;
    6060const double   MAXRES_CODE           = 10.0;
    61 const double   MAXRES_PHASE          = 0.02;
     61const double   MAXRES_PHASE          = 0.04;
    6262const double   GLONASS_WEIGHT_FACTOR = 5.0;
    6363
     
    12241224  // Try with all satellites, then with all minus one, etc.
    12251225  // ------------------------------------------------------
    1226   const unsigned MAX_NEGLECT = 1;
    1227   for (unsigned nNeglected = 0; nNeglected <= MAX_NEGLECT; nNeglected++) {
     1226  for (unsigned nNeglected = 0; nNeglected <= allPrns.size() - MINOBS; nNeglected++) {
    12281227    usedPrns = allPrns;
    12291228
     
    12421241      // Remove Neglected Satellites from epoData
    12431242      // ----------------------------------------
     1243      unsigned neglectedGPS = 0;
    12441244      for (unsigned ip = 0; ip < allPrns.size(); ip++) {
    12451245        QString prn = allPrns[ip];
     
    12471247          epoData->satData.remove(prn);
    12481248          strNeglected += prn + " ";
    1249         }
     1249          if (prn[0] == 'G') {
     1250            ++neglectedGPS;
     1251          }
     1252        }
     1253      }
     1254      if (neglectedGPS > 1) {
     1255        continue;
    12501256      }
    12511257      if (epoData->sizeSys('G') < MINOBS) {
Note: See TracChangeset for help on using the changeset viewer.