Changeset 6035 in ntrip


Ignore:
Timestamp:
Aug 21, 2014, 1:04:43 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
5 edited

Legend:

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

    r6020 r6035  
    157157  // Create vector of valid observations
    158158  // -----------------------------------
    159   int numValidGPS = 0;
    160159  for (unsigned ii = 0; ii < satObs.size(); ii++) {
    161160    char system = satObs[ii]->_prn.system();
    162     if (system == 'G' || (system == 'R' && OPT->useGlonass())) {
     161    if (OPT->useSystem(system)) {
    163162      t_pppSatObs* pppSatObs = new t_pppSatObs(*satObs[ii]);
    164163      if (pppSatObs->isValid()) {
    165164        obsVector.push_back(pppSatObs);
    166         if (pppSatObs->prn().system() == 'G') {
    167           ++numValidGPS;
    168         }
    169165      }
    170166      else {
     
    283279  double     offGG = 0.0;
    284280
    285   if (OPT->useGlonass()) {
     281  if (OPT->useSystem('R')) {
    286282
    287283    while (obsVector.size() > 0) {
  • trunk/BNC/src/PPP/pppOptions.cpp

    r6019 r6035  
    9090  if (_LCsGPS.size()     > 0) answ.push_back('G');
    9191  if (_LCsGLONASS.size() > 0) answ.push_back('R');
     92  if (_LCsGalileo.size() > 0) answ.push_back('E');
    9293  return answ;
    9394}
  • trunk/BNC/src/PPP/pppOptions.h

    r6019 r6035  
    1414  ~t_pppOptions();
    1515
     16  std::vector<char>              systems() const;
    1617  const std::vector<t_lc::type>& LCs(char system) const;
     18  std::vector<t_lc::type>        ambLCs(char system) const;
     19  bool useSystem(char system) const {return LCs(system).size() > 0;}
    1720  bool useOrbClkCorr() const;
    18   std::vector<char> systems() const;
    19   std::vector<t_lc::type> ambLCs(char system) const;
    20   bool useGlonass() const  {return _LCsGLONASS.size() > 0;}
    2121  bool estTrp() const {return _aprSigTrp > 0.0 || _noiseTrp > 0.0;}
    2222  bool xyzAprRoverSet() const {
  • trunk/BNC/src/PPP/pppParlist.cpp

    r6021 r6035  
    301301  // GPS-Glonass Clock Offset
    302302  // ------------------------
    303   if (OPT->useGlonass()) {
     303  if (OPT->useSystem('R')) {
    304304    required.push_back(new t_pppParam(t_pppParam::offGG, t_prn(), t_lc::dummy));
    305305  }
  • trunk/BNC/src/PPP/pppSatObs.cpp

    r6034 r6035  
    8585  // Select pseudoranges and phase observations
    8686  // ------------------------------------------
    87   const string preferredAttrib = "CWP_";
     87  const string preferredAttrib = "CWPX_";
    8888
    8989  for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) {
     
    105105  // --------------------
    106106  _fType1 = t_lc::toFreq(_prn.system(),t_lc::l1);
    107   _fType2 = t_lc::toFreq(_prn.system(),t_lc::l2);
     107  if (_prn.system() == 'E') {
     108    _fType2 = t_frequency::E5;
     109  }
     110  else {
     111    _fType2 = t_lc::toFreq(_prn.system(),t_lc::l2);
     112  }
    108113
    109114  // Check whether all required frequencies available
Note: See TracChangeset for help on using the changeset viewer.