Changeset 9821 in ntrip for trunk/BNC/src/combination


Ignore:
Timestamp:
Sep 9, 2022, 10:57:27 AM (20 months ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src/combination
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/combination/bnccomb.cpp

    r9819 r9821  
    174174      QStringList hlp = it.next().split(" ");
    175175      cmbAC* newAC = new cmbAC();
    176       newAC->mountPoint = hlp[0];
    177       newAC->name       = hlp[1];
    178       newAC->weight    = hlp[2].toDouble();
     176      newAC->mountPoint   = hlp[0];
     177      newAC->name         = hlp[1];
     178      newAC->weightFactor = hlp[2].toDouble();
    179179      QMapIterator<char, unsigned> itSys(_cmbSysPrn);
    180180      // init
     
    456456    // ----------------------
    457457    QString acName;
     458    double weigthFactor;
    458459    QListIterator<cmbAC*> icAC(_ACs);
    459460    while (icAC.hasNext()) {
     
    461462      if (AC->mountPoint == staID) {
    462463        acName = AC->name;
     464        weigthFactor = AC->weightFactor;
    463465        break;
    464466      }
     
    492494    newCorr->_acName  = acName;
    493495    newCorr->_clkCorr = clkCorr;
     496    newCorr->_weightFactor = weigthFactor;
    494497
    495498    // Check orbit correction
     
    10331036    ll(iObs) = (corr->_clkCorr._dClk * t_CST::c - corr->_satCodeBiasIF) - DotProduct(AA.Row(iObs), x0);
    10341037
     1038    PP(iObs, iObs) *= 1.0 / (corr->_weightFactor * corr->_weightFactor);
    10351039  }
    10361040
  • trunk/BNC/src/combination/bnccomb.h

    r9819 r9821  
    6565   public:
    6666    cmbAC() {
    67       weight = 0.0;
    68       numObs['G'] = 0;
    69       numObs['R'] = 0;
    70       numObs['E'] = 0;
    71       numObs['C'] = 0;
    72       numObs['J'] = 0;
    73       numObs['S'] = 0;
    74       numObs['I'] = 0;
     67      weightFactor = 1.0;
     68      numObs['G']  = 0;
     69      numObs['R']  = 0;
     70      numObs['E']  = 0;
     71      numObs['C']  = 0;
     72      numObs['J']  = 0;
     73      numObs['S']  = 0;
     74      numObs['I']  = 0;
    7575    }
    7676    ~cmbAC() {}
    7777    QString  mountPoint;
    7878    QString  name;
    79     double   weight;
     79    double   weightFactor;
    8080    QMap<char, unsigned> numObs;
    8181  };
     
    101101    double         _dClkResult;
    102102    ColumnVector   _diffRao;
     103    double         _weightFactor;
    103104    QString ID() {return _acName + "_" + _prn;}
    104105  };
Note: See TracChangeset for help on using the changeset viewer.