Changeset 10373 in ntrip for trunk/BNC/src/PPP/pppFilter.cpp


Ignore:
Timestamp:
Mar 1, 2024, 4:12:31 PM (9 months ago)
Author:
stuerze
Message:

changes regarding PPP

File:
1 edited

Legend:

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

    r10369 r10373  
    7676  string epoTimeStr = string(_epoTime);
    7777
    78   const QList<char> &usedSystems = _parlist->usedSystems();
     78  const QMap<char, int> &usedSystems = _parlist->usedSystems();
    7979
    8080  // Set Parameters
     
    9292  // Process Satellite Systems separately
    9393  // ------------------------------------
    94   for (int iSys = 0; iSys < usedSystems.size(); iSys++) {
    95     char sys = usedSystems[iSys];
    96     unsigned int num = 0;
     94  for (auto it = usedSystems.begin(); it != usedSystems.end(); ++it) {
     95    char     sys = it.key();
     96    unsigned num = 0;
    9797    vector<t_pppSatObs*> obsVector;
    9898    for (unsigned jj = 0; jj < allObs.size(); jj++) {
     
    185185            AA[iObs][iPar] = par->partial(_epoTime, obs, tLC);
    186186          }
     187          double offGps = 0.0;
     188          if (sys == 'G' && tLC != t_lc::MW) {
     189            offGps = PPP_CLIENT->offGps();
     190          }
    187191          double offGlo = 0.0;
    188192          if (sys == 'R' && tLC != t_lc::MW) {
     
    197201            offBds = PPP_CLIENT->offBds();
    198202          }
    199           ll[iObs] = obs->obsValue(tLC) - offGlo - offGal - offBds  - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1));
     203          ll[iObs] = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds  - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1));
    200204          PP[iObs] = 1.0 / (obs->sigma(tLC) * obs->sigma(tLC));
    201205        }
     
    229233              AA[iObs][iPar] = par->partial(_epoTime, obs, tLC);
    230234            }
     235            double offGps = 0.0;
     236            if (sys == 'G' && tLC != t_lc::MW) {
     237              offGps = PPP_CLIENT->offGps();
     238            }
    231239            double offGlo = 0.0;
    232240            if (sys == 'R' && tLC != t_lc::MW) {
     
    241249              offBds = PPP_CLIENT->offBds();
    242250            }
    243             ll[iObs] = obs->obsValue(tLC) - offGlo - offGal - offBds  - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1));
     251            ll[iObs] = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds  - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1));
    244252            PP[iObs] = 1.0 / (obs->sigma(tLC) * obs->sigma(tLC));
    245253          }
     
    375383
    376384        // Check Pre-Fit Residuals
    377         /* -----------------------
     385        // -----------------------
    378386        else {
    379387          ColumnVector AA(params.size());
     
    382390            AA[iPar] = par->partial(_epoTime, obs, tLC);
    383391          }
     392          double offGps = 0.0;
     393          if (sys == 'G' && tLC != t_lc::MW) {
     394            offGps = PPP_CLIENT->offGps();
     395          }
    384396          double offGlo = 0.0;
    385397          if (sys == 'R' && tLC != t_lc::MW) {
     
    394406            offBds = PPP_CLIENT->offBds();
    395407          }
    396           double ll = obs->obsValue(tLC) - offGlo - offGal - offBds  - obs->cmpValue(tLC) - DotProduct(_x0, AA);
     408          double ll = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds  - obs->cmpValue(tLC) - DotProduct(_x0, AA);
    397409          double vv = DotProduct(AA, _xFlt) - ll;
    398410
     
    402414            resetAmb(obs->prn(), obsVector, tLC);
    403415          }
    404         }*/
     416        }
    405417      }
    406418    }
Note: See TracChangeset for help on using the changeset viewer.