Changeset 9386 in ntrip for trunk/BNC/src/PPP/pppSatObs.cpp


Ignore:
Timestamp:
Mar 25, 2021, 3:17:35 PM (3 years ago)
Author:
stuerze
Message:

update regarding PPP

File:
1 edited

Legend:

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

    r9303 r9386  
    6363
    6464  // Select pseudoranges and phase observations
    65   // ------------------------------------------
     65  // -------------------------------------------
    6666  const string preferredAttrib = "G:12&PWCSLXYN G:5&IQX R:12&PC R:3&IQX E:16&BCX E:578&IQX J:1&SLXCZ J:26&SLX J:5&IQX C:IQX I:ABCX S:1&C S:5&IQX";
    6767
     
    296296
    297297  if (tLC == t_lc::GIM) {
    298     retVal = OPT->_sigmaGIM * OPT->_sigmaGIM;
     298    retVal = OPT->_sigmaGIM * OPT->_sigmaGIM + OPT->_sigmaGIM * OPT->_sigmaGIM;
    299299  }
    300300
     
    304304
    305305  map<t_frequency::type, double>::const_iterator it;
    306   for (it = codeCoeff.begin(); it != codeCoeff.end(); it++)   {//qDebug() << "codeCoeff : " << t_frequency::toString(it->first).c_str() << ": " << it->second;
     306  for (it = codeCoeff.begin(); it != codeCoeff.end(); it++)   {//cout << "codeCoeff : " << t_frequency::toString(it->first).c_str() << ": " << it->second << endl;
    307307    retVal += it->second * it->second * OPT->_sigmaC1 * OPT->_sigmaC1;
    308308  }
    309309
    310   for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {//qDebug() << "phaseCoeff: " << t_frequency::toString(it->first).c_str()  << ": " << it->second;
     310  for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {//cout << "phaseCoeff: " << t_frequency::toString(it->first).c_str()  << ": " << it->second << endl;
    311311    retVal += it->second * it->second * OPT->_sigmaL1 * OPT->_sigmaL1;
    312312  }
     
    316316  // De-Weight GLONASS and BDS
    317317  // --------------------------
    318   if (_prn.system() == 'R' ||
    319       _prn.system() == 'C') {
     318  if ((_prn.system() == 'R' && (t_lc::includesCode(tLC) ||  t_lc::includesPhase(tLC))) ||
     319      (_prn.system() == 'C' && (t_lc::includesCode(tLC) ||  t_lc::includesPhase(tLC)))) { 
    320320    retVal *= 5.0;
    321321  }
     
    336336//
    337337////////////////////////////////////////////////////////////////////////////
    338 double t_pppSatObs::maxRes(t_lc::type tLC) const {//qDebug() << "t_pppSatObs::maxRes(t_lc::type tLC)";
     338double t_pppSatObs::maxRes(t_lc::type tLC) const {
    339339  double retVal = 0.0;
    340340
     
    345345
    346346  map<t_frequency::type, double>::const_iterator it;
    347   for (it = codeCoeff.begin(); it != codeCoeff.end(); it++)   {//qDebug() << "codeCoeff: " << it->first << ": " << it->second;
     347  for (it = codeCoeff.begin(); it != codeCoeff.end(); it++)   {//cout << "codeCoeff: " << it->first << ": " << it->second << endl;
    348348    retVal += it->second * it->second * OPT->_maxResC1 * OPT->_maxResC1;
    349349  }
    350   for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {//qDebug() << "phaseCoeff: " << it->first << ": " << it->second;
     350  for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {//cout << "phaseCoeff: " << it->first << ": " << it->second << endl;
    351351    retVal += it->second * it->second * OPT->_maxResL1 * OPT->_maxResL1;
    352352  }
    353353  if (tLC == t_lc::GIM) {
    354     retVal = 3.0 * OPT->_sigmaGIM * OPT->_sigmaGIM;
     354    retVal = 3.0 * (OPT->_sigmaGIM * OPT->_sigmaGIM + OPT->_sigmaGIM * OPT->_sigmaGIM);
    355355  }
    356356  if (tLC == t_lc::Tz0) {
    357357    retVal = 3.0 * OPT->_sigmaTz0 * OPT->_sigmaTz0;
    358358  }
    359   return sqrt(retVal);
     359
     360  retVal = sqrt(retVal);
     361
     362  return retVal;
    360363}
    361364
Note: See TracChangeset for help on using the changeset viewer.