Changeset 10232 in ntrip for trunk/BNC/src/PPP/pppParlist.cpp


Ignore:
Timestamp:
Oct 30, 2023, 4:39:46 PM (11 months ago)
Author:
stuerze
Message:
 
File:
1 edited

Legend:

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

    r10219 r10232  
    6262     _noise   = OPT->_noiseCrd[2];
    6363     break;
    64    case clkR:
     64   case rClkG:
     65     _epoSpec = true;
     66     _sigma0  = OPT->_aprSigClk;
     67     break;
     68   case rClkR:
     69     _epoSpec = true;
     70     _sigma0  = OPT->_aprSigClk;
     71     break;
     72   case rClkE:
     73     _epoSpec = true;
     74     _sigma0  = OPT->_aprSigClk;
     75     break;
     76   case rClkC:
    6577     _epoSpec = true;
    6678     _sigma0  = OPT->_aprSigClk;
     
    7486         const t_pppSatObs* obs = obsVector->at(ii);
    7587         if (obs->prn() == _prn) {
    76            double offGlo = 0;
    77            if (_prn.system() == 'R' && tLC != t_lc::MW) {
    78              offGlo = PPP_CLIENT->offGlo();
    79            }
    80            double offGal = 0;
    81            if (_prn.system() == 'E' && tLC != t_lc::MW) {
    82              offGal = PPP_CLIENT->offGal();
    83            }
    84            double offBds = 0;
    85            if (_prn.system() == 'C' && tLC != t_lc::MW) {
    86              offBds = PPP_CLIENT->offBds();
    87            }
    88            _x0 = floor((obs->obsValue(tLC) - offGlo - offGal - offBds - obs->cmpValue(tLC)) / obs->lambda(tLC) + 0.5);
     88           _x0 = floor((obs->obsValue(tLC) - obs->cmpValue(tLC)) / obs->lambda(tLC) + 0.5);
    8989           break;
    9090         }
    9191       }
    9292     }
    93      break;
    94    case offGlo:
    95      _epoSpec = true;
    96      _sigma0  = OPT->_aprSigClk;
    97      _x0      = PPP_CLIENT->offGlo();
    98      break;
    99    case offGal:
    100      _epoSpec = true;
    101      _sigma0  = OPT->_aprSigClk;
    102      _x0      = PPP_CLIENT->offGal();
    103      break;
    104    case offBds:
    105      _epoSpec = true;
    106      _sigma0  = OPT->_aprSigClk;
    107      _x0      = PPP_CLIENT->offBds();
    10893     break;
    10994   case trp:
     
    168153    if (tLC == t_lc::GIM) {return 0.0;}
    169154    return (sta->xyzApr()[2] - obs->xc()[2]) / rhoV.NormFrobenius();
    170   case clkR:
     155  case rClkG:
    171156    if (tLC == t_lc::GIM) {return 0.0;}
    172     return 1.0;
    173   case offGlo:
     157    return (obs->prn().system() == 'G') ? 1.0 : 0.0;
     158  case rClkR:
    174159    if (tLC == t_lc::GIM) {return 0.0;}
    175160    return (obs->prn().system() == 'R') ? 1.0 : 0.0;
    176   case offGal:
     161  case rClkE:
    177162    if (tLC == t_lc::GIM) {return 0.0;}
    178163    return (obs->prn().system() == 'E') ? 1.0 : 0.0;
    179   case offBds:
     164  case rClkC:
    180165    if (tLC == t_lc::GIM) {return 0.0;}
    181166    return (obs->prn().system() == 'C') ? 1.0 : 0.0;
     
    296281    ss << "CRD_Z";
    297282    break;
    298   case clkR:
    299     ss << "REC_CLK     ";
    300     break;
    301   case offGlo:
    302     ss << "OFF_GLO     ";
    303     break;
    304   case offGal:
    305     ss << "OFF_GAL     ";
    306     break;
    307   case offBds:
    308     ss << "OFF_BDS     ";
     283  case rClkG:
     284    ss << "REC_CLK  G  ";
     285    break;
     286  case rClkR:
     287    ss << "REC_CLK  R  ";
     288    break;
     289  case rClkE:
     290    ss << "REC_CLK  E  ";
     291    break;
     292  case rClkC:
     293    ss << "REC_CLK  C  ";
    309294    break;
    310295  case trp:
     
    491476  required.push_back(new t_pppParam(t_pppParam::crdZ, t_prn(), t_lc::dummy));
    492477
    493   // Receiver Clock
    494   // --------------
    495   required.push_back(new t_pppParam(t_pppParam::clkR, t_prn(), t_lc::dummy));
    496 
    497   // GLONASS Clock Offset
    498   // --------------------
    499   if ( _usedSystems.contains('R')  &&
    500       (_usedSystems.contains('G') || _usedSystems.contains('E') || _usedSystems.contains('C'))) {
    501     required.push_back(new t_pppParam(t_pppParam::offGlo, t_prn(), t_lc::dummy));
    502   }
    503 
    504   // Galileo Clock Offset
    505   // --------------------
    506   if (_usedSystems.contains('E') && _usedSystems.contains('G')) {
    507     required.push_back(new t_pppParam(t_pppParam::offGal, t_prn(), t_lc::dummy));
    508   }
    509 
    510   // BDS Clock Offset
    511   // ----------------
    512   if (_usedSystems.contains('C')  && (_usedSystems.contains('G') || _usedSystems.contains('E'))) {
    513     required.push_back(new t_pppParam(t_pppParam::offBds, t_prn(), t_lc::dummy));
    514   }
     478  // Receiver Clocks
     479  // ---------------
     480   if (_usedSystems.contains('G')) {
     481     required.push_back(new t_pppParam(t_pppParam::rClkG, t_prn(), t_lc::dummy));
     482   }
     483
     484   if (_usedSystems.contains('R')) {
     485     required.push_back(new t_pppParam(t_pppParam::rClkR, t_prn(), t_lc::dummy));
     486   }
     487
     488   if (_usedSystems.contains('E')) {
     489     required.push_back(new t_pppParam(t_pppParam::rClkE, t_prn(), t_lc::dummy));
     490   }
     491
     492   if (_usedSystems.contains('C')) {
     493     required.push_back(new t_pppParam(t_pppParam::rClkC, t_prn(), t_lc::dummy));
     494   }
    515495
    516496  // Troposphere
Note: See TracChangeset for help on using the changeset viewer.