Changeset 5997 in ntrip for trunk


Ignore:
Timestamp:
Aug 18, 2014, 9:40:33 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppMain.cpp

    r5977 r5997  
    170170    opt->_antexFileName = settings.value("PPP/antexFile").toString().toAscii().data();
    171171
    172     opt->_sigmaC1      = settings.value("PPP/sigmaC1").toDouble();
    173     opt->_sigmaL1      = settings.value("PPP/sigmaL1").toDouble();
     172    opt->_sigmaC1      = settings.value("PPP/sigmaC1").toDouble(); if (opt->_sigmaC1 <= 0.0) opt->_sigmaC1 =  2.0;
     173    opt->_sigmaL1      = settings.value("PPP/sigmaL1").toDouble(); if (opt->_sigmaL1 <= 0.0) opt->_sigmaL1 = 0.01;
    174174    opt->_corrWaitTime = settings.value("PPP/corrWaitTime").toDouble();
    175175
     
    228228    }
    229229
    230     opt->_minObs      = settings.value("PPP/minObs").toInt();
     230    opt->_minObs      = settings.value("PPP/minObs").toInt(); if (opt->_minObs < 4) opt->_minObs = 4;
    231231    opt->_minEle      = settings.value("PPP/minEle").toDouble() * M_PI / 180.0;
    232     opt->_maxResC1    = settings.value("PPP/maxResC1").toDouble();
    233     opt->_maxResL1    = settings.value("PPP/maxResL1").toDouble();
     232    opt->_maxResC1    = settings.value("PPP/maxResC1").toDouble(); if (opt->_maxResC1 <= 0.0) opt->_maxResC1 = 3.0;
     233    opt->_maxResL1    = settings.value("PPP/maxResL1").toDouble(); if (opt->_maxResL1 <= 0.0) opt->_maxResL1 = 0.03;
    234234    opt->_eleWgtCode  = (settings.value("PPP/eleWgtCode").toInt() != 0);
    235235    opt->_eleWgtPhase = (settings.value("PPP/eleWgtPhase").toInt() != 0);
Note: See TracChangeset for help on using the changeset viewer.