Changeset 2408 in ntrip


Ignore:
Timestamp:
Apr 9, 2010, 11:25:40 AM (12 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2367 r2408  
    440440  RSW_to_XYZ(xc.Rows(1,3), vv, raoHlp, dx);
    441441
    442   xc[0] -= dx[0];
    443   xc[1] -= dx[1];
    444   xc[2] -= dx[2];
    445   xc[3] -= cc->dClk + cc->dotDClk * dt + cc->dotDotDClk * dt * dt;
    446 
    447   // Relativistic Correction
    448   // -----------------------
    449   xc[3] -= 2.0 * DotProduct(xc.Rows(1,3),vv) / t_CST::c / t_CST::c ;
     442  xc[0] += dx[0];
     443  xc[1] += dx[1];
     444  xc[2] += dx[2];
     445  xc[3] += cc->dClk + cc->dotDClk * dt + cc->dotDotDClk * dt * dt;
    450446}
    451447
  • trunk/BNS/bns.cpp

    r2369 r2408  
    595595    }
    596596   
    597     ColumnVector dx = xB.Rows(1,3) - xyz;
     597    ColumnVector dx = xyz - xB.Rows(1,3);
    598598   
    599599    if (ii == 1) {
    600600      XYZ_to_RSW(xB.Rows(1,3), vv, dx, rsw);
    601       dClk = (xB(4) - xx(4)) * 299792458.0;
     601      dClk = (xx(4) + xx(5) - xB(4)) * 299792458.0;
    602602    }
    603603    else {
Note: See TracChangeset for help on using the changeset viewer.