Changeset 3135 in ntrip


Ignore:
Timestamp:
Mar 25, 2011, 1:22:58 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3134 r3135  
    598598
    599599  if (nObs > 0) {
     600    const double Pl = 1.0 / (0.05 * 0.05);
     601
    600602    const int nCon = 2 + MAXPRN_GPS;
    601603    Matrix         AA(nObs+nCon, nPar);  AA = 0.0;
    602604    ColumnVector   ll(nObs+nCon);        ll = 0.0;
    603     DiagonalMatrix PP(nObs+nCon);        PP = 1.0;
     605    DiagonalMatrix PP(nObs+nCon);        PP = Pl;
    604606
    605607    int iObs = 0;
     
    644646    PP(nObs+iCond) = Ph;
    645647    for (int iPar = 1; iPar <= _params.size(); iPar++) {
    646       cmbParam* pp = _params[iPar-1];
    647       if      (pp->type == cmbParam::clk) {
    648         AA(nObs+iCond, iPar) = 1.0;
     648      if (AA.Column(iPar).maximum_absolute_value() > 0.0) {
     649        cmbParam* pp = _params[iPar-1];
     650        if      (pp->type == cmbParam::clk) {
     651          AA(nObs+iCond, iPar) = 1.0;
     652        }
    649653      }
    650654    }
     
    655659      PP(nObs+1+iGps) = Ph;
    656660      for (int iPar = 1; iPar <= _params.size(); iPar++) {
    657         cmbParam* pp = _params[iPar-1];
    658         if (pp->type == cmbParam::Sat_offset && pp->prn == prn) {
    659           AA(nObs+iCond, iPar) = 1.0;
     661        if (AA.Column(iPar).maximum_absolute_value() > 0.0) {
     662          cmbParam* pp = _params[iPar-1];
     663          if (pp->type == cmbParam::Sat_offset && pp->prn == prn) {
     664            AA(nObs+iCond, iPar) = 1.0;
     665          }
    660666        }
    661667      }
Note: See TracChangeset for help on using the changeset viewer.