Changeset 6364 in ntrip
- Timestamp:
- Dec 1, 2014, 9:54:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/orbComp/sp3Comp.cpp
r6363 r6364 188 188 // Estimate Parameters 189 189 // ------------------- 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; 200 191 201 192 // Compute clock residuals … … 222 213 223 214 vector<t_epoch*> epochs; 224 set<t_prn> clkSats;225 215 while (in1.currEpoch() && in2.currEpoch()) { 226 216 bncTime t1 = in1.currEpoch()->_tt; … … 245 235 if (sat1->_clkValid && sat2->_clkValid) { 246 236 epo->_dc[sat1->_prn] = sat1->_clk - sat2->_clk; 247 clkSats.insert(sat1->_prn);248 237 } 249 238 } … … 266 255 throw "t_sp3Comp: not enought common epochs"; 267 256 } 257 258 set<t_prn> clkSats; 259 268 260 for (unsigned ie = 0; ie < epochs.size(); ie++) { 269 261 t_epoch* epoch = epochs[ie]; … … 287 279 ColumnVector vel = (x1 - x2) / dt; 288 280 XYZ_to_RSW(x1, vel, dx, dr[prn]); 281 if (epoch->_dc.find(prn) != epoch->_dc.end()) { 282 clkSats.insert(prn); 283 } 289 284 } 290 285 else {
Note:
See TracChangeset
for help on using the changeset viewer.