Changeset 3519 in ntrip for trunk/BNC/bncpppclient.cpp
- Timestamp:
- Dec 13, 2011, 5:36:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r3508 r3519 376 376 if (eLast && eLast->IOD() == cc->iod) { 377 377 eLast->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data()); 378 return applyCorr(tt, cc, xc, vv );378 return applyCorr(tt, cc, xc, vv, eLast); 379 379 } 380 380 else if (ePrev && ePrev->IOD() == cc->iod) { 381 381 ePrev->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data()); 382 return applyCorr(tt, cc, xc, vv );382 return applyCorr(tt, cc, xc, vv, ePrev); 383 383 } 384 384 } … … 399 399 //////////////////////////////////////////////////////////////////////////// 400 400 t_irc bncPPPclient::applyCorr(const bncTime& tt, const t_corr* cc, 401 ColumnVector& xc, ColumnVector& vv) {402 ColumnVector dx(3);401 ColumnVector& xc, ColumnVector& vv, 402 const t_eph* eph) { 403 403 404 404 double dt = tt - cc->tt; … … 410 410 411 411 if (cc->xyzCorr) { 412 dx = raoHlp; 412 xc[0] += raoHlp[0]; 413 xc[1] += raoHlp[1]; 414 xc[2] += raoHlp[2]; 415 ColumnVector xcHlp(4); 416 ColumnVector vvHlp(3); 417 eph->position(cc->tt.gpsw(), cc->tt.gpssec(), xcHlp.data(), vvHlp.data()); 418 xc[3] += cc->dClk - xcHlp[3]; 413 419 } 414 420 else { 421 ColumnVector dx(3); 415 422 RSW_to_XYZ(xc.Rows(1,3), vv, raoHlp, dx); 416 } 417 418 xc[0] -= dx[0]; 419 xc[1] -= dx[1]; 420 xc[2] -= dx[2]; 421 xc[3] += cc->dClk + cc->dotDClk * dt + cc->dotDotDClk * dt * dt 422 + cc->hrClk; 423 xc[0] -= dx[0]; 424 xc[1] -= dx[1]; 425 xc[2] -= dx[2]; 426 xc[3] += cc->dClk + cc->dotDClk * dt + cc->dotDotDClk * dt * dt 427 + cc->hrClk; 428 } 423 429 424 430 return success;
Note:
See TracChangeset
for help on using the changeset viewer.