Changeset 5849 in ntrip
- Timestamp:
- Aug 7, 2014, 12:20:26 PM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppInclude.h
r5839 r5849 74 74 class t_orbCorr { 75 75 public: 76 ColumnVector getX(const bncTime& tt) const {77 ColumnVector xx(3);78 double dt = tt - _time;79 xx[0] = _xr[0] + _dotXr[0] * dt;80 xx[1] = _xr[1] + _dotXr[1] * dt;81 xx[2] = _xr[2] + _dotXr[2] * dt;82 return xx;83 }84 76 t_prn prn() const {return _prn;} 85 77 unsigned short IOD() const {return _iod;} … … 94 86 class t_clkCorr { 95 87 public: 96 double getClk(const bncTime& tt) const {97 double dt = tt - _time;98 return _dClk + dt * _dotDClk + dt * dt * _dotDotDClk;99 }100 88 t_prn prn() const {return _prn;} 101 89 unsigned short IOD() const {return _iod;} -
trunk/BNC/src/ephemeris.cpp
r5839 r5849 65 65 if (useCorr) { 66 66 if (_orbCorr && _clkCorr) { 67 ColumnVector xr = _orbCorr->getX(tt); 67 68 double dtO = tt - _orbCorr->_time; 68 69 ColumnVector dx(3); 70 dx[0] = _orbCorr->_xr[0] + _orbCorr->_dotXr[0] * dtO; 71 dx[1] = _orbCorr->_xr[1] + _orbCorr->_dotXr[1] * dtO; 72 dx[2] = _orbCorr->_xr[2] + _orbCorr->_dotXr[2] * dtO; 73 69 74 if (_orbCorr->_system == 'R') { 70 RSW_to_XYZ(xc.Rows(1,3), vv.Rows(1,3), xr, dx); 71 } 72 else { 73 dx = xr; 74 } 75 RSW_to_XYZ(xc.Rows(1,3), vv.Rows(1,3), dx, dx); 76 } 77 75 78 xc[0] -= dx[0]; 76 79 xc[1] -= dx[1]; 77 80 xc[2] -= dx[2]; 78 xc[3] += _clkCorr->getClk(tt); 81 82 double dtC = tt - _clkCorr->_time; 83 xc[3] += _clkCorr->_dClk + _clkCorr->_dotDClk * dtC + _clkCorr->_dotDotDClk * dtC * dtC; 79 84 } 80 85 else {
Note:
See TracChangeset
for help on using the changeset viewer.