Changeset 10193 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Sep 1, 2023, 10:40:53 PM (15 months ago)
Author:
stuerze
Message:

changes regarding ppp

Location:
trunk/BNC/src/PPP
Files:
2 edited

Legend:

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

    r10184 r10193  
    6969  _offGal = 0.0;
    7070  _offBds = 0.0;
     71
    7172  CLIENTS.setLocalData(this);  // CLIENTS takes ownership over "this"
    7273}
     
    340341double t_pppClient::cmpOffGlo(vector<t_pppSatObs*>& obsVector) {
    341342
    342   t_lc::type tLC   = t_lc::dummy;
    343   double     offGlo = 0.0;
    344 
     343  t_lc::type tLC = t_lc::dummy;
     344  double offGlo = 0.0;
     345  double MAXRES = 0.0;
    345346  if (OPT->useSystem('R')) {
    346347
     
    356357          if (tLC == t_lc::dummy) {
    357358            tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1;
     359            MAXRES = satObs->maxRes(tLC);
    358360          }
    359361          if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= OPT->_minEle)) {
     
    377379      }
    378380
    379       if (fabs(maxRes) > 1000.0) {
     381      if (fabs(maxRes) > MAXRES) {
    380382        LOG << "t_pppClient::cmpOffGlo outlier " << maxResPrn.toString() << " " << maxRes << endl;
    381383        obsVector.erase(obsVector.begin() + maxResIndex);
     
    394396double t_pppClient::cmpOffGal(vector<t_pppSatObs*>& obsVector) {
    395397
    396   t_lc::type tLC   = t_lc::dummy;
    397   double     offGal = 0.0;
     398  t_lc::type tLC  = t_lc::dummy;
     399  double offGal = 0.0;
     400  double MAXRES = 0.0;
    398401
    399402  if (OPT->useSystem('E')) {
     
    410413          if (tLC == t_lc::dummy) {
    411414            tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1;
     415            MAXRES = satObs->maxRes(tLC);
    412416          }
    413417          if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= OPT->_minEle)) {
     
    431435      }
    432436
    433       if (fabs(maxRes) > 1000.0) {
     437      if (fabs(maxRes) > MAXRES) {
    434438        LOG << "t_pppClient::cmpOffGal outlier " << maxResPrn.toString() << " " << maxRes << endl;
    435439        obsVector.erase(obsVector.begin() + maxResIndex);
     
    449453double t_pppClient::cmpOffBds(vector<t_pppSatObs*>& obsVector) {
    450454
    451   t_lc::type tLC   = t_lc::dummy;
    452   double     offBds = 0.0;
     455  t_lc::type tLC = t_lc::dummy;
     456  double offBds = 0.0;
     457  double MAXRES = 0.0;
    453458
    454459  if (_opt->useSystem('C')) {
     
    464469          if (tLC == t_lc::dummy) {
    465470            tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1;
     471            MAXRES = satObs->maxRes(tLC);
    466472          }
    467473          if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= _opt->_minEle)) {
     
    485491      }
    486492
    487       if (fabs(maxRes) >  1000.0) {
     493      if (fabs(maxRes) > MAXRES) {
    488494        LOG << "t_pppClient::cmpOffBds outlier " << maxResPrn.toString() << " " << maxRes << endl;
    489495        delete obsVector.at(maxResIndex);
  • trunk/BNC/src/PPP/pppFilter.cpp

    r10191 r10193  
    192192    // Check number of observations
    193193    // ----------------------------
    194     if (nSat < 2) {
     194    if (nSat < 3) {
    195195      LOG << "t_pppFilter::processSystem not enough observations " << nSat << "\n";
    196196      return failure;
Note: See TracChangeset for help on using the changeset viewer.