Changeset 3751 in ntrip for trunk/BNC/bncpppclient.cpp
- Timestamp:
- Mar 30, 2012, 3:44:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r3640 r3751 271 271 } 272 272 273 // Remove All Corrections274 // ----------------------275 // QMapIterator<QString, t_corr*> ic(_corr);276 // while (ic.hasNext()) {277 // ic.next();278 // delete ic.value();279 // }280 // _corr.clear();281 282 273 QListIterator<QString> it(corrList); 283 274 while (it.hasNext()) { … … 303 294 304 295 cc->readLine(line); 305 _corr_tt = cc->t t;296 _corr_tt = cc->tClk; 306 297 } 307 298 else if ( messageType == BTYPE_GPS ) { … … 337 328 } 338 329 339 QMutableMapIterator<QString, t_corr*> im(_corr);340 while (im.hasNext()) {341 im.next();342 t_corr* cc = im.value();343 if (!cc->ready()) {344 delete cc;345 im.remove();346 }347 }348 330 } 349 331 … … 360 342 if (_corr.contains(prn)) { 361 343 t_corr* cc = _corr.value(prn); 362 if ( tt - cc->tt< MAXAGE) {344 if (cc->ready() && tt - cc->tClk < MAXAGE) { 363 345 t_eph* eLast = _eph.value(prn)->last; 364 346 t_eph* ePrev = _eph.value(prn)->prev; … … 390 372 ColumnVector& xc, ColumnVector& vv) { 391 373 392 double dt = tt - cc->tt; 393 ColumnVector raoHlp = cc->rao + cc->dotRao * dt + cc->dotDotRao * dt * dt; 374 double dtRao = tt - cc->tRao; 375 ColumnVector raoHlp = cc->rao + cc->dotRao * dtRao 376 + cc->dotDotRao * dtRao * dtRao; 394 377 395 378 if (raoHlp.norm_Frobenius() > 20.0) { … … 402 385 xc[1] -= dx[1]; 403 386 xc[2] -= dx[2]; 404 xc[3] += cc->dClk + cc->dotDClk * dt + cc->dotDotDClk * dt * dt 387 388 double dtClk = tt - cc->tClk; 389 390 xc[3] += cc->dClk + cc->dotDClk * dtClk + cc->dotDotDClk * dtClk * dtClk 405 391 + cc->hrClk; 406 392
Note:
See TracChangeset
for help on using the changeset viewer.