Changeset 2107 in ntrip


Ignore:
Timestamp:
Dec 13, 2009, 11:02:24 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2084 r2107  
    263263  RSW_to_XYZ(xc.Rows(1,3), vv, cc->rao, dx);
    264264
    265   xc[0] += dx[0];
    266   xc[1] += dx[1];
    267   xc[2] += dx[2];
    268   xc[3] += cc->dClk;
     265  xc[0] -= dx[0];
     266  xc[1] -= dx[1];
     267  xc[2] -= dx[2];
     268  xc[3] -= cc->dClk;
    269269
    270270  // Relativistic Correction
  • trunk/BNS/bns.cpp

    r2047 r2107  
    512512  }
    513513
    514   ColumnVector dx = xyz - xB.Rows(1,3);
     514  ColumnVector dx = xB.Rows(1,3) - xyz;
    515515
    516516  ColumnVector rsw(3);
    517517  XYZ_to_RSW(xB.Rows(1,3), vv, dx, rsw);
    518518
    519   double dClk = (xx(4) - xB(4)) * 299792458.0;
     519  double dClk = (xB(4) - xx(4)) * 299792458.0;
    520520
    521521
Note: See TracChangeset for help on using the changeset viewer.