Changeset 8034 in ntrip


Ignore:
Timestamp:
Sep 5, 2016, 10:33:28 PM (6 years ago)
Author:
stuerze
Message:

minor changes to allow for example GLONASS-only or Galileo-only PPP

File:
1 edited

Legend:

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

    r8024 r8034  
    214214    for (unsigned ii = 0; ii < obsVector.size(); ii++) {
    215215      const t_pppSatObs* satObs = obsVector.at(ii);
    216       if (satObs->prn().system() == 'G') {
    217         if (tLC == t_lc::dummy) {
    218           if (satObs->isValid(t_lc::cIF)) {
    219             tLC = t_lc::cIF;
    220           }
    221           else if (satObs->isValid(t_lc::c1)) {
    222             tLC = t_lc::c1;
    223           }
    224           else {
    225             tLC = t_lc::c2;
    226           }
     216      if (tLC == t_lc::dummy) {
     217        if (satObs->isValid(t_lc::cIF)) {
     218          tLC = t_lc::cIF;
    227219        }
    228         if ( satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= OPT->_minEle) ) {
    229           ++iObs;
    230           BB[iObs][0] = satObs->xc()[0];
    231           BB[iObs][1] = satObs->xc()[1];
    232           BB[iObs][2] = satObs->xc()[2];
    233           BB[iObs][3] = satObs->obsValue(tLC) - satObs->cmpValueForBanc(tLC);
     220        else if (satObs->isValid(t_lc::c1)) {
     221          tLC = t_lc::c1;
    234222        }
     223        else {
     224          tLC = t_lc::c2;
     225        }
     226      }
     227      if ( satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= OPT->_minEle) ) {
     228        ++iObs;
     229        BB[iObs][0] = satObs->xc()[0];
     230        BB[iObs][1] = satObs->xc()[1];
     231        BB[iObs][2] = satObs->xc()[2];
     232        BB[iObs][3] = satObs->obsValue(tLC) - satObs->cmpValueForBanc(tLC);
    235233      }
    236234    }
Note: See TracChangeset for help on using the changeset viewer.