Changeset 9583 in ntrip for trunk/BNC/src/PPP


Ignore:
Timestamp:
Jan 4, 2022, 2:50:21 PM (2 years ago)
Author:
stuerze
Message:

update regarding PPP

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

Legend:

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

    r9581 r9583  
    523523      // use observations only if satellite code biases are available
    524524      // ------------------------------------------------------------
    525       //useObsWithCodeBiasesOnly(_obsRover);
     525      useObsWithCodeBiasesOnly(_obsRover);
    526526
    527527      if (int(_obsRover.size()) < _opt->_minObs) {
     
    719719          continue;
    720720        }
    721         if (satObs->prn().system() == sys && 
    722         !_historicalRefSats[sys].contains(satObs->prn())) {
     721        if (satObs->prn().system() == sys &&
     722            !_historicalRefSats[sys].contains(satObs->prn())) {
    723723          obsVector[ii]->setAsReference();
    724724          refSat->setPrn(satObs->prn());
  • trunk/BNC/src/PPP/pppFilter.cpp

    r9582 r9583  
    119119      if (processSystem(OPT->LCs(sys), obsVector, _refPrn,
    120120                        epoch->pseudoObsIono(), preProcessing) != success) {
    121         LOG << "processSystem !=  success (pre-processing)" << endl;
     121        LOG << sys << ": processSystem !=  success (pre-processing)" << endl;
    122122        _xFlt = xFltOld;
    123123        _QFlt = QFltOld;
     
    240240    // Real Observations
    241241    // =================
     242    double nSat = 0;
    242243    for (unsigned ii = 0; ii < obsVector.size(); ii++) {
    243244      t_pppSatObs* obs = obsVector[ii];
     
    246247      }
    247248      if (!obs->outlier()) {
     249        nSat++;
    248250        for (unsigned jj = 0; jj < usedLCs; jj++) {
    249251          const t_lc::type tLC = LCs[jj];
     
    264266    // Check number of observations
    265267    // ----------------------------
    266     if (iObs == -1) {LOG << "iObs == -1\n";
    267       return failure;
     268
     269    if (OPT->_obsModelType == OPT->DCMcodeBias ||
     270        OPT->_obsModelType == OPT->DCMphaseBias) {
     271      if (nSat < 2.0) {
     272        LOG << " number of observations < 2\n";
     273        return failure;
     274      }
     275    }
     276    else {
     277      if (iObs == -1) {
     278        LOG << " number of observations == -1\n";
     279        return failure;
     280      }
    268281    }
    269282
  • trunk/BNC/src/PPP/pppSatObs.cpp

    r9582 r9583  
    312312  retVal = sqrt(retVal);
    313313
    314   // De-Weight measurements
    315   // ----------------------
    316   if (_prn.system() == 'R') {
    317     retVal *= 50.0;
    318   }
    319 
    320314  // Elevation-Dependent Weighting
    321315  // -----------------------------
     
    353347
    354348  retVal = sqrt(retVal);
    355 
    356   if (_prn.system() == 'R') {
    357     retVal *= 5.0;
    358   }
    359349
    360350  return retVal;
Note: See TracChangeset for help on using the changeset viewer.