Changeset 2296 in ntrip for trunk/BNC/bncpppclient.cpp
- Timestamp:
- Feb 14, 2010, 7:15:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2275 r2296 308 308 messageType == COTYPE_GLONASSCOMBINED ) { 309 309 cc->rao.ReSize(3); 310 in >> cc->iod >> cc->dClk >> cc->rao[0] >> cc->rao[1] >> cc->rao[2]; 310 cc->dotRao.ReSize(3); 311 cc->dotRao = 0.0; 312 double dummyDotClk; 313 in >> cc->iod >> cc->dClk >> cc->rao[0] >> cc->rao[1] >> cc->rao[2] 314 >> dummyDotClk >> cc->dotRao[0] >> cc->dotRao[1] >> cc->dotRao[2]; 311 315 cc->dClk /= t_CST::c; 312 316 cc->raoSet = true; … … 316 320 messageType == COTYPE_GLONASSORBIT ) { 317 321 cc->rao.ReSize(3); 318 in >> cc->iod >> cc->rao[0] >> cc->rao[1] >> cc->rao[2]; 322 in >> cc->iod >> cc->rao[0] >> cc->rao[1] >> cc->rao[2] 323 >> cc->dotRao[0] >> cc->dotRao[1] >> cc->dotRao[2]; 319 324 cc->raoSet = true; 320 325 } … … 393 398 if (ee->IOD() == cc->iod && (tt - cc->tt) < MAXAGE) { 394 399 corr = true; 395 applyCorr( cc, xc, vv);400 applyCorr(tt, cc, xc, vv); 396 401 return success; 397 402 } … … 408 413 // 409 414 //////////////////////////////////////////////////////////////////////////// 410 void bncPPPclient::applyCorr(const t_corr* cc, ColumnVector& xc,411 ColumnVector& vv) {415 void bncPPPclient::applyCorr(const bncTime& tt, const t_corr* cc, 416 ColumnVector& xc, ColumnVector& vv) { 412 417 ColumnVector dx(3); 413 RSW_to_XYZ(xc.Rows(1,3), vv, cc->rao, dx); 418 419 ColumnVector raoHlp = cc->rao + cc->dotRao * (tt - cc->tt); 420 421 RSW_to_XYZ(xc.Rows(1,3), vv, raoHlp, dx); 414 422 415 423 xc[0] -= dx[0];
Note:
See TracChangeset
for help on using the changeset viewer.