Changeset 6974 in ntrip


Ignore:
Timestamp:
Jun 25, 2015, 4:35:34 PM (9 years ago)
Author:
stuerze
Message:

BDS observations added in SSR I PPP mode

Location:
trunk/BNC/src/PPP_SSR_I
Files:
3 edited

Legend:

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

    r6969 r6974  
    9292    satData->P2       = 0.0;
    9393    satData->P5       = 0.0;
     94    satData->P7       = 0.0;
    9495    satData->L1       = 0.0;
    9596    satData->L2       = 0.0;
    9697    satData->L5       = 0.0;
     98    satData->L7       = 0.0;
    9799    for (unsigned ifrq = 0; ifrq < obs->_obs.size(); ifrq++) {
    98100      t_frqObs* frqObs = obs->_obs[ifrq];
     
    112114        if (frqObs->_slip)       satData->slipFlag = true;
    113115      }
     116      else if (frqObs->_rnxType2ch[0] == '7') {
     117              if (frqObs->_codeValid)  satData->P7       = frqObs->_code;
     118              if (frqObs->_phaseValid) satData->L7       = frqObs->_phase;
     119              if (frqObs->_slip)       satData->slipFlag = true;
     120            }
    114121    }
    115122    putNewObs(satData);
     
    245252    }
    246253  }
     254
     255  // Set Observations BDS
     256  // ---------------------
     257  else if (satData->system() == 'C' && _opt->useSystem('C')) {
     258    if (satData->P2 != 0.0 && satData->P7 != 0.0 &&
     259        satData->L2 != 0.0 && satData->L7 != 0.0 ) {
     260      double f2 = t_CST::freq(t_frequency::C2, 0);
     261      double f7 = t_CST::freq(t_frequency::C7, 0);
     262      double a2 =   f2 * f2 / (f2 * f2 - f7 * f7);
     263      double a7 = - f7 * f7 / (f2 * f2 - f7 * f7);
     264      satData->L2      = satData->L2 * t_CST::c / f2;
     265      satData->L7      = satData->L7 * t_CST::c / f7;
     266      satData->P3      = a2 * satData->P2 + a7 * satData->P7;
     267      satData->L3      = a2 * satData->L2 + a7 * satData->L7;
     268      satData->lambda3 = a2 * t_CST::c / f2 + a7 * t_CST::c / f7;
     269      satData->lkA     = a2;
     270      satData->lkB     = a7;
     271      _epoData->satData[satData->prn] = satData;
     272    }
     273    else {
     274      delete satData;
     275    }
     276  }
    247277}
    248278
  • trunk/BNC/src/PPP_SSR_I/pppFilter.cpp

    r6968 r6974  
    233233  if (OPT->useSystem('E')) {
    234234    _params.push_back(new t_pppParam(t_pppParam::GALILEO_OFFSET, ++nextPar, ""));
    235   }/*
     235  }
    236236  if (OPT->useSystem('C')) {
    237237    _params.push_back(new t_pppParam(t_pppParam::BDS_OFFSET, ++nextPar, ""));
    238   }*/
     238  }
    239239
    240240  _QQ.ReSize(_params.size());
     
    528528      }
    529529
     530      // BDS Offset
     531      // ----------
    530532      else if (pp->type == t_pppParam::BDS_OFFSET) {
    531         _QQ(iPar,iPar) += 0.1 * 0.1;//TODO
     533       _QQ(iPar,iPar) += 0.1 * 0.1; //TODO
    532534      }
    533535    }
     
    726728  if      (iPhase == 1) {
    727729    if      (maxResGlo > 2.98 * OPT->_maxResL1) {
    728       LOG << "Outlier Phase " << prnGlo.toAscii().data() << ' ' << maxResGlo << endl;
     730      LOG << "Outlier Phase " << prnGlo.mid(0,3).toAscii().data() << ' ' << maxResGlo << endl;
    729731      return prnGlo;
    730732    }
    731733    else if (maxResGPS > 2.98 * OPT->_maxResL1) {
    732       LOG << "Outlier Phase " << prnGPS.toAscii().data() << ' ' << maxResGPS << endl;
     734      LOG << "Outlier Phase " << prnGPS.mid(0,3).toAscii().data() << ' ' << maxResGPS << endl;
    733735      return prnGPS;
    734736    }
    735737  }
    736738  else if (iPhase == 0 && maxResGPS > 2.98 * OPT->_maxResC1) {
    737     LOG << "Outlier Code  " << prnGPS.toAscii().data() << ' ' << maxResGPS << endl;
     739    LOG << "Outlier Code  " << prnGPS.mid(0,3).toAscii().data() << ' ' << maxResGPS << endl;
    738740    return prnGPS;
    739741  }
  • trunk/BNC/src/PPP_SSR_I/pppFilter.h

    r6968 r6974  
    6464  double       P2;
    6565  double       P5;
     66  double       P7;
    6667  double       P3;
    6768  double       L1;
    6869  double       L2;
    6970  double       L5;
     71  double       L7;
    7072  double       L3;
    7173  ColumnVector xx;
Note: See TracChangeset for help on using the changeset viewer.