Changeset 6364 in ntrip


Ignore:
Timestamp:
Dec 1, 2014, 9:54:52 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/orbComp/sp3Comp.cpp

    r6363 r6364  
    188188  // Estimate Parameters
    189189  // -------------------
    190   ColumnVector xx;
    191   try {
    192     xx = NN.i() * bb;
    193   }
    194   catch (Exception& exc) {
    195     for (int ii = 1; ii <= NN.Nrows(); ii++) {
    196       NN(ii,ii) += 1e-4;
    197     }
    198     xx = NN.i() * bb;
    199   }
     190  ColumnVector xx = NN.i() * bb;
    200191
    201192  // Compute clock residuals
     
    222213
    223214  vector<t_epoch*> epochs;
    224   set<t_prn>       clkSats;
    225215  while (in1.currEpoch() && in2.currEpoch()) {
    226216    bncTime t1 = in1.currEpoch()->_tt;
     
    245235            if (sat1->_clkValid && sat2->_clkValid) {
    246236              epo->_dc[sat1->_prn] = sat1->_clk - sat2->_clk;
    247               clkSats.insert(sat1->_prn);
    248237            }
    249238          }
     
    266255    throw "t_sp3Comp: not enought common epochs";
    267256  }
     257
     258  set<t_prn> clkSats;
     259
    268260  for (unsigned ie = 0; ie < epochs.size(); ie++) {
    269261    t_epoch* epoch  = epochs[ie];
     
    287279        ColumnVector vel = (x1 - x2) / dt;
    288280        XYZ_to_RSW(x1, vel, dx, dr[prn]);
     281        if (epoch->_dc.find(prn) != epoch->_dc.end()) {
     282          clkSats.insert(prn);
     283        }
    289284      }
    290285      else {
Note: See TracChangeset for help on using the changeset viewer.