Changeset 10034 in ntrip for trunk/BNC/src/PPP/pppSatObs.cpp


Ignore:
Timestamp:
Apr 21, 2023, 11:48:24 AM (12 months ago)
Author:
stuerze
Message:
 
File:
1 edited

Legend:

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

    r10014 r10034  
    4444  _valid      = true;
    4545  _reference  = false;
    46   _stecRefSat = 0.0;
    4746  _stecSat    = 0.0;
    4847  _signalPriorities = QString::fromStdString(OPT->_signalPriorities);
    4948  if (!_signalPriorities.size()) {
    50     if (OPT->_obsModelType == OPT->DCMcodeBias ||
    51         OPT->_obsModelType == OPT->DCMphaseBias) {
    52       // at the moment only one code or phase bias per system (G,R,E,C)/modulation considered
    53       _signalPriorities = "G:12&CW R:12&CP E:1&CX E:5&QX C:26&I";
    54     }
    55     else {
    56       _signalPriorities = "G:12&CWPSLX R:12&CP E:1&CBX E:5&QIX C:26&IQX";
    57     }
     49    _signalPriorities = "G:12&CWPSLX R:12&CP E:1&CBX E:5&QIX C:26&IQX";
    5850  }
    5951
     
    109101            if (obs->_rnxType2ch == obsType.toStdString() &&
    110102                obs->_codeValid && obs->_code &&
    111                 obs->_phaseValid && obs->_phase) {
     103                obs->_phaseValid && obs->_phase &&
     104                obs->_lockTimeValid &&  obs->_lockTime > 5.0) {
    112105              _obs[iFreq] = new t_frqObs(*obs); //cout << "================> newObs: " << obs->_rnxType2ch <<endl;
    113106            }
     
    261254  // Pseudo observations
    262255  if (tLC == t_lc::GIM) {
    263     if (_stecRefSat == 0.0 || _stecSat == 0.0) {
     256    if (_stecSat == 0.0) {
    264257      if (valid) *valid = false;
    265258      return 0.0;
    266259    }
    267260    else {
    268       return _stecRefSat;
     261      return _stecSat;
    269262    }
    270263  }
     
    339332
    340333  if (tLC == t_lc::GIM) {
    341     retVal = OPT->_sigmaGIM * OPT->_sigmaGIM + OPT->_sigmaGIM * OPT->_sigmaGIM;
     334    retVal = OPT->_sigmaGIM * OPT->_sigmaGIM;
    342335  }
    343336
     
    587580    double f1GPS = t_CST::freq(t_frequency::G1, 0);
    588581    for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) {
    589       if (OPT->_pseudoObsIono) { // DCMcodeBias, DCMphaseBias
     582      if (OPT->_pseudoObsIono) {
    590583        // For scaling the slant ionospheric delays the trick is to be consistent with units!
    591584        // The conversion of TECU into meters requires the frequency of the signal.
     
    737730//
    738731////////////////////////////////////////////////////////////////////////////
    739 void  t_pppSatObs::setPseudoObsIono(t_frequency::type freq, double stecRefSat) {
     732bool  t_pppSatObs::setPseudoObsIono(t_frequency::type freq) {
     733  bool pseudoObsIono = false;
    740734  _stecSat    = _model._ionoCodeDelay[freq];
    741   _stecRefSat = stecRefSat;
    742 }
     735  if (_stecSat) {
     736    pseudoObsIono = true;
     737  }
     738  return pseudoObsIono;
     739}
Note: See TracChangeset for help on using the changeset viewer.