Changeset 9473 in ntrip


Ignore:
Timestamp:
Jul 13, 2021, 10:11:20 PM (19 months ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r9446 r9473  
    1717
    1818#include <iostream>
     19#include <iomanip>
    1920#include <cmath>
    2021#include <newmatio.h>
     
    304305
    305306  map<t_frequency::type, double>::const_iterator it;
    306   for (it = codeCoeff.begin(); it != codeCoeff.end(); it++)   {//cout << "codeCoeff : " << t_frequency::toString(it->first).c_str() << ": " << it->second << endl;
     307  for (it = codeCoeff.begin(); it != codeCoeff.end(); it++)   {
    307308    retVal += it->second * it->second * OPT->_sigmaC1 * OPT->_sigmaC1;
    308309  }
    309310
    310   for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {//cout << "phaseCoeff: " << t_frequency::toString(it->first).c_str()  << ": " << it->second << endl;
     311  for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {
    311312    retVal += it->second * it->second * OPT->_sigmaL1 * OPT->_sigmaL1;
    312313  }
     
    314315  retVal = sqrt(retVal);
    315316
    316   // De-Weight GLONASS and BDS
    317   // --------------------------
    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)))) {
     317  // De-Weight GLONASS
     318  // -----------------
     319  if (_prn.system() == 'R' && (t_lc::includesCode(tLC) ||  t_lc::includesPhase(tLC))) {
    320320    retVal *= 5.0;
    321321  }
     322
     323  // De-Weight BDS
     324  // -------------
     325  if (_prn.system() == 'C' && (t_lc::includesCode(tLC) ||  t_lc::includesPhase(tLC))) {
     326    retVal *= 2.0;
     327  }
     328
    322329
    323330  // Elevation-Dependent Weighting
     
    345352
    346353  map<t_frequency::type, double>::const_iterator it;
    347   for (it = codeCoeff.begin(); it != codeCoeff.end(); it++)   {//cout << "codeCoeff: " << it->first << ": " << it->second << endl;
     354  for (it = codeCoeff.begin(); it != codeCoeff.end(); it++)   {
    348355    retVal += it->second * it->second * OPT->_maxResC1 * OPT->_maxResC1;
    349356  }
    350   for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {//cout << "phaseCoeff: " << it->first << ": " << it->second << endl;
     357  for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {
    351358    retVal += it->second * it->second * OPT->_maxResL1 * OPT->_maxResL1;
    352359  }
Note: See TracChangeset for help on using the changeset viewer.