Changeset 7142 in ntrip for trunk/BNC


Ignore:
Timestamp:
Jul 22, 2015, 4:18:09 PM (9 years ago)
Author:
stuerze
Message:

some more changes to consider the user's decision regarding the observations that have to be used

File:
1 edited

Legend:

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

    r7050 r7142  
    531531      // ----------
    532532      else if (pp->type == t_pppParam::BDS_OFFSET) {
    533         _QQ(iPar,iPar) += 0.1 * 0.1;    //TODO: TEST
     533        _QQ(iPar,iPar) = 1000.0 * 1000.0;    //TODO: TEST
    534534      }
    535535    }
     
    848848void t_pppFilter::addAmb(t_satData* satData) {
    849849  Tracer tracer("t_pppFilter::addAmb");
     850  if (!OPT->ambLCs(satData->system()).size()){
     851    return;
     852  }
    850853  bool    found = false;
    851854  for (int iPar = 1; iPar <= _params.size(); iPar++) {
     
    909912  else {
    910913    double sigP3 = 2.98 * OPT->_sigmaC1;
     914    if  (satData->system() == 'C') {
     915      sigP3 *= BDS_WEIGHT_FACTOR;
     916    }
    911917    ll(iObs)      = satData->P3 - cmpValue(satData, false);
    912918    PP(iObs,iObs) = 1.0 / (sigP3 * sigP3) / (ellWgtCoef * ellWgtCoef);
     
    926932  ostringstream str;
    927933  str.setf(ios::fixed);
     934  bool useObs;
    928935       
    929936  QMapIterator<QString, t_satData*> it(satDataMap);
     
    931938    it.next();
    932939    t_satData* satData = it.value();
    933     if (satData->obsIndex != 0) {
     940    (iPhase == 0) ? useObs = OPT->codeLCs(satData->system()).size() :
     941                    useObs = OPT->ambLCs(satData->system()).size();
     942    if (satData->obsIndex != 0 && useObs) {
    934943      str << _time.timestr(1)
    935944          << " RES " << satData->prn.mid(0,3).toAscii().data()
     
    10181027      nObs = epoData->sizeAll();
    10191028      bool useObs = false;
    1020       char additionalSys[] ={'R', 'E', 'C'};
    1021       for (unsigned ii = 0; ii < sizeof(additionalSys); ii++) {
    1022         const char s = additionalSys[ii];
     1029      char sys[] ={'G', 'R', 'E', 'C'};
     1030      for (unsigned ii = 0; ii < sizeof(sys); ii++) {
     1031        const char s = sys[ii];
    10231032        (iPhase == 0) ? useObs = OPT->codeLCs(s).size() : useObs = OPT->ambLCs(s).size();
    10241033        if (!useObs) {
     
    10391048        t_satData* satData = it.value();
    10401049        QString prn = satData->prn;
    1041         char sys =   satData->system();
    1042         (iPhase == 0) ? useObs = OPT->codeLCs(sys).size() : useObs = OPT->ambLCs(sys).size();
    1043         if (sys == 'G' || useObs) {
     1050        (iPhase == 0) ? useObs = OPT->codeLCs(satData->system()).size() :
     1051                        useObs = OPT->ambLCs(satData->system()).size();
     1052        if (useObs) {
    10441053          addObs(iPhase, iObs, satData, AA, ll, PP);
    10451054        }
     
    10541063      // Print Residuals
    10551064      // ---------------
    1056       if (iPhase == 0) {
     1065      if      (iPhase == 0) {
    10571066        strResCode  = printRes(iPhase, vv, epoData->satData);
    10581067      }
Note: See TracChangeset for help on using the changeset viewer.