Changeset 9583 in ntrip


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

update regarding PPP

Location:
trunk/BNC/src
Files:
4 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;
  • trunk/BNC/src/pppMain.cpp

    r9565 r9583  
    216216      opt->_obsModelType = t_pppOptions::DCMcodeBias;
    217217      opt->_refSatRequired = true;
    218       opt->_noiseCodeBias  = 1000.0;
     218      opt->_noiseCodeBias  = 0.1;
    219219      opt->_noiseIon = 0.1;
    220220    }
     
    222222      opt->_obsModelType = t_pppOptions::DCMphaseBias;
    223223      opt->_refSatRequired = true;
    224       opt->_noisePhaseBias = 1000.0;
     224      opt->_noisePhaseBias = 0.1;
    225225      opt->_noiseIon = 0.1;
    226226    }
Note: See TracChangeset for help on using the changeset viewer.