Changeset 6115 in ntrip for trunk


Ignore:
Timestamp:
Sep 8, 2014, 5:41:17 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP_free/pppFilter.cpp

    r6112 r6115  
    5555using namespace std;
    5656
    57 const unsigned MINOBS                = 5;
    58 const double   MINELE                = 10.0 * M_PI / 180.0;
    59 const double   MAXRES_CODE           = 15.0;
    60 const double   MAXRES_PHASE_GPS      = 0.04;
    61 const double   MAXRES_PHASE_GLONASS  = 0.08;
    62 const double   GLONASS_WEIGHT_FACTOR = 5.0;
     57const double   MAXRES_CODE           = 2.98 * 3.0;
     58const double   MAXRES_PHASE_GPS      = 2.98 * 0.03;
     59const double   MAXRES_PHASE_GLONASS  = 2.98 * 0.03;
     60const double   GLONASS_WEIGHT_FACTOR = 1.0;
    6361
    6462#define LOG (_pppClient->log())
     
    255253  Tracer tracer("t_pppFilter::cmpBancroft");
    256254
    257   if (epoData->sizeSys('G') < MINOBS) {
     255  if (epoData->sizeSys('G') < OPT->_minObs) {
    258256    LOG << "t_pppFilter::cmpBancroft: not enough data\n";
    259257    return failure;
     
    290288    t_satData* satData = im.value();
    291289    cmpEle(satData);
    292     if (satData->eleSat < MINELE) {
     290    if (satData->eleSat < OPT->_minEle) {
    293291      delete satData;
    294292      im.remove();
     
    684682
    685683  if      (iPhase == 1) {
    686     if      (maxResGlo > MAXRES_PHASE_GLONASS) {
     684    if      (maxResGlo > 2.98 * OPT->_maxResL1) {
    687685      LOG << "Outlier Phase " << prnGlo.toAscii().data() << ' ' << maxResGlo << endl;
    688686      return prnGlo;
    689687    }
    690     else if (maxResGPS > MAXRES_PHASE_GPS) {
     688    else if (maxResGPS > 2.98 * OPT->_maxResL1) {
    691689      LOG << "Outlier Phase " << prnGPS.toAscii().data() << ' ' << maxResGPS << endl;
    692690      return prnGPS;
    693691    }
    694692  }
    695   else if (iPhase == 0 && maxResGPS > MAXRES_CODE) {
     693  else if (iPhase == 0 && maxResGPS > 2.98 * OPT->_maxResC1) {
    696694    LOG << "Outlier Code  " << prnGPS.toAscii().data() << ' ' << maxResGPS << endl;
    697695    return prnGPS;
Note: See TracChangeset for help on using the changeset viewer.