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


Ignore:
Timestamp:
Mar 11, 2024, 3:28:32 PM (4 months ago)
Author:
stuerze
Message:

changes regarding PPP

File:
1 edited

Legend:

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

    r10381 r10384  
    7676  string epoTimeStr = string(_epoTime);
    7777
    78   const QMap<char, int> &usedSystems = _parlist->usedSystems();
    79 
    8078  // Set Parameters
    8179  // --------------
     
    9290  // Process Satellite Systems separately
    9391  // ------------------------------------
    94   for (auto it = usedSystems.begin(); it != usedSystems.end(); ++it) {
    95     char     sys = it.key();
    96     unsigned num = 0;
     92  for (unsigned iSys = 0; iSys < OPT->systems().size(); iSys++) {
     93    char sys = OPT->systems()[iSys];
     94    int num = 0;
    9795    vector<t_pppSatObs*> obsVector;
    9896    for (unsigned jj = 0; jj < allObs.size(); jj++) {
     
    167165    for (unsigned ii = 0; ii < obsVector.size(); ii++) {
    168166      t_pppSatObs *obs = obsVector[ii];
    169       char sys = obs->prn().system();
    170167      if (iOutlier == 0) {
    171168        obs->resetOutlier();
     
    185182            AA[iObs][iPar] = par->partial(_epoTime, obs, tLC);
    186183          }
    187           double offGps = 0.0;
    188           if (sys == 'G' && tLC != t_lc::MW) {
    189             offGps = PPP_CLIENT->offGps();
    190           }
    191           double offGlo = 0.0;
    192           if (sys == 'R' && tLC != t_lc::MW) {
    193             offGlo = PPP_CLIENT->offGlo();
    194           }
    195           double offGal = 0.0;
    196           if (sys == 'E' && tLC != t_lc::MW) {
    197             offGal = PPP_CLIENT->offGal();
    198           }
    199           double offBds = 0.0;
    200           if (sys == 'C' && tLC != t_lc::MW) {
    201             offBds = PPP_CLIENT->offBds();
    202           }
    203           ll[iObs] = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds  - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1));
     184
     185          ll[iObs] = obs->obsValue(tLC) - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1));
    204186          PP[iObs] = 1.0 / (obs->sigma(tLC) * obs->sigma(tLC));
    205187        }
     
    218200      for (unsigned ii = 0; ii < obsVector.size(); ii++) {
    219201        t_pppSatObs *obs = obsVector[ii];
    220         char sys = obs->prn().system();
    221202        if (!obs->outlier()) {
    222203          for (unsigned jj = 0; jj < usedLCs; jj++) {
     
    233214              AA[iObs][iPar] = par->partial(_epoTime, obs, tLC);
    234215            }
    235             double offGps = 0.0;
    236             if (sys == 'G' && tLC != t_lc::MW) {
    237               offGps = PPP_CLIENT->offGps();
    238             }
    239             double offGlo = 0.0;
    240             if (sys == 'R' && tLC != t_lc::MW) {
    241               offGlo = PPP_CLIENT->offGlo();
    242             }
    243             double offGal = 0.0;
    244             if (sys == 'E' && tLC != t_lc::MW) {
    245               offGal = PPP_CLIENT->offGal();
    246             }
    247             double offBds = 0.0;
    248             if (sys == 'C' && tLC != t_lc::MW) {
    249               offBds = PPP_CLIENT->offBds();
    250             }
    251             ll[iObs] = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds  - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1));
     216            ll[iObs] = obs->obsValue(tLC) - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1));
    252217            PP[iObs] = 1.0 / (obs->sigma(tLC) * obs->sigma(tLC));
    253218          }
     
    351316      for (unsigned iObs = 0; iObs < obsVector.size(); iObs++) {
    352317        const t_pppSatObs *obs = obsVector[iObs];
    353         char sys = obs->prn().system();
    354318
    355319        // Check set Slips and Jump Counters
     
    383347
    384348        // Check Pre-Fit Residuals
    385         /* -----------------------
     349        // -----------------------
    386350        else {
    387351          ColumnVector AA(params.size());
     
    390354            AA[iPar] = par->partial(_epoTime, obs, tLC);
    391355          }
    392           double offGps = 0.0;
    393           if (sys == 'G' && tLC != t_lc::MW) {
    394             offGps = PPP_CLIENT->offGps();
    395           }
    396           double offGlo = 0.0;
    397           if (sys == 'R' && tLC != t_lc::MW) {
    398             offGlo = PPP_CLIENT->offGlo();
    399           }
    400           double offGal = 0.0;
    401           if (sys == 'E' && tLC != t_lc::MW) {
    402             offGal = PPP_CLIENT->offGal();
    403           }
    404           double offBds = 0.0;
    405           if (sys == 'C' && tLC != t_lc::MW) {
    406             offBds = PPP_CLIENT->offBds();
    407           }
    408           double ll = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds  - obs->cmpValue(tLC) - DotProduct(_x0, AA);
     356          double ll = obs->obsValue(tLC) - obs->cmpValue(tLC) - DotProduct(_x0, AA);
    409357          double vv = DotProduct(AA, _xFlt) - ll;
    410358
     
    414362            resetAmb(obs->prn(), obsVector, tLC);
    415363          }
    416         }*/
     364        }
    417365      }
    418366    }
Note: See TracChangeset for help on using the changeset viewer.