Changeset 2233 in ntrip


Ignore:
Timestamp:
Jan 12, 2010, 11:46:32 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r2232 r2233  
    377377    while (iGPS.hasNext()) {
    378378      iGPS.next();
    379       QString prn   = iGPS.key();
     379      QString prn        = iGPS.key();
     380      t_satData* satData = iGPS.value();
    380381      bool    found = false;
    381382      for (int iPar = 1; iPar <= _params.size(); iPar++) {
     
    395396    while (iGlo.hasNext()) {
    396397      iGlo.next();
    397       QString prn   = iGlo.key();
     398      QString prn        = iGlo.key();
     399      t_satData* satData = iGlo.value();
    398400      bool    found = false;
    399401      for (int iPar = 1; iPar <= _params.size(); iPar++) {
     
    407409        bncParam* par = new bncParam(bncParam::AMB_L3, _params.size()+1, prn);
    408410        _params.push_back(par);
     411        par->xx = satData->P3 - cmpValue(satData);
    409412      }
    410413    }
     
    507510    unsigned nObs = 0;
    508511    if (_usePhase) {
    509       nObs = 2 * epoData->sizeGPS() + epoData->sizeGlo();
     512      nObs = 2 * epoData->sizeGPS(); // TODO: + epoData->sizeGlo();
    510513    }
    511514    else {
     
    562565      QMapIterator<QString, t_satData*> itGlo(epoData->satDataGlo);
    563566      while (itGlo.hasNext()) {
    564         ++iObs;
     567        //// TODO        ++iObs;
    565568        itGlo.next();
    566569        QString    prn     = itGlo.key();
    567570        t_satData* satData = itGlo.value();
    568571     
     572        //// beg test
    569573        double rhoCmp = cmpValue(satData);
    570 
    571         //// beg test
    572         cout << prn.toAscii().data() << " "  << rhoCmp << " "
    573              << satData->P3 << " " << satData->L3 << endl;
     574        cout.setf(ios::fixed);
     575        cout << prn.toAscii().data() << " " 
     576             << setprecision(3) << rhoCmp      << " "
     577             << setprecision(3) << satData->P3 << " "
     578             << setprecision(3) << satData->L3 << " " << endl;
     579
    574580        //// end test
    575      
    576         double ellWgtCoeff = 1.0;
    577         ////  double eleD = satData->eleSat * 180.0 / M_PI;
    578         ////  if (eleD < 25.0) {
    579         ////    ellWgtCoeff = 2.5 - (eleD - 10.0) * 0.1;
    580         ////    ellWgtCoeff *= ellWgtCoeff;
    581         ////  }
    582      
    583         ll(iObs)      = satData->L3 - rhoCmp;
    584         PP(iObs,iObs) = 1.0 / (sig_L3 * sig_L3) / ellWgtCoeff;
    585         for (int iPar = 1; iPar <= _params.size(); iPar++) {
    586           if (_params[iPar-1]->type == bncParam::AMB_L3 &&
    587               _params[iPar-1]->prn  == prn) {
    588             ll(iObs) -= _params[iPar-1]->xx;
    589           }
    590           AA(iObs, iPar) = _params[iPar-1]->partial(satData, prn);
    591         }
    592581      }
    593582    }
     
    605594
    606595  } while (outlierDetection(QQsav, vv, epoData->satDataGPS,
    607                                        epoData->satDataGlo) != 0);
     596                            epoData->satDataGlo) != 0);
    608597
    609598  // Set Solution Vector
     
    736725  }
    737726 
    738   // Glonass phase residuals
    739   // -----------------------
    740   if (_usePhase) {
    741     QMutableMapIterator<QString, t_satData*> itGlo(satDataGlo);
    742     while (itGlo.hasNext()) {
    743       itGlo.next();
    744       ++ii;
    745       if (vvMaxPhaseGlo == 0.0 || fabs(vv(ii)) > vvMaxPhaseGlo) {
    746         vvMaxPhaseGlo = fabs(vv(ii));
    747         itMaxPhaseGlo = itGlo;
    748       }
    749     }
    750   }
     727////  // Glonass phase residuals
     728////  // -----------------------
     729////  if (_usePhase) {
     730////    QMutableMapIterator<QString, t_satData*> itGlo(satDataGlo);
     731////    while (itGlo.hasNext()) {
     732////      itGlo.next();
     733////      ++ii;
     734////      if (vvMaxPhaseGlo == 0.0 || fabs(vv(ii)) > vvMaxPhaseGlo) {
     735////        vvMaxPhaseGlo = fabs(vv(ii));
     736////        itMaxPhaseGlo = itGlo;
     737////      }
     738////    }
     739////  }
    751740
    752741  if      (vvMaxCodeGPS > MAXRES_CODE) {
  • trunk/BNC/bncpppclient.cpp

    r2232 r2233  
    187187    _epoData->satDataGlo[prn] = satData;
    188188  }
     189
    189190}
    190191
Note: See TracChangeset for help on using the changeset viewer.