Changeset 2257 in ntrip
- Timestamp:
- Jan 16, 2010, 11:45:40 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/ephemeris.cpp
r2237 r2257 256 256 int ww = ee->GPSWeek; 257 257 int tow = ee->GPSTOW; 258 259 updatetime(&ww, &tow, ee->tb*1000, 0); 260 261 int tk = ee->tk-3*60*60; 262 if (tk < 0) { 263 tk += 86400; 264 } 258 updatetime(&ww, &tow, ee->tb*1000, 0); // Moscow -> GPS 265 259 266 260 _GPSweek = ww; 267 261 _GPSweeks = tow; 268 _gps_utc = 0.0;269 262 _E = ee->E; 270 263 _tau = ee->tau; … … 281 274 _health = 0; 282 275 _frequency_number = ee->frequency_number; 283 _tki = tk;276 _tki = ee->tk-3*60*60; if (_tki < 0) _tki += 86400; 284 277 285 278 // Initialize status vector -
trunk/BNC/RTCM3/ephemeris.h
r2222 r2257 91 91 class t_ephGlo : public t_eph { 92 92 public: 93 t_ephGlo() { _ gps_utc = 0.0; _xv.ReSize(6); }93 t_ephGlo() { _xv.ReSize(6); } 94 94 95 95 virtual ~t_ephGlo() {} … … 109 109 mutable ColumnVector _xv; // status vector (position, velocity) at time _tt 110 110 111 double _gps_utc; // GPS - UTC in seconds112 111 double _E; // [days] 113 112 double _tau; // [s] -
trunk/BNC/bncapp.cpp
r2235 r2257 218 218 wwOld = (*ee)->GPSWeek; 219 219 towOld = (*ee)->GPSTOW; 220 updatetime(&wwOld, &towOld, (*ee)->tb*1000, 0); 220 updatetime(&wwOld, &towOld, (*ee)->tb*1000, 0); // Moscow -> GPS 221 221 222 222 wwNew = glonasseph->GPSWeek; 223 223 towNew = glonasseph->GPSTOW; 224 updatetime(&wwNew, &towNew, glonasseph->tb*1000, 0); 224 updatetime(&wwNew, &towNew, glonasseph->tb*1000, 0); // Moscow -> GPS 225 225 } 226 226 … … 481 481 struct converttimeinfo cti; 482 482 483 updatetime(&ww, &tow, ep->tb*1000, 1); 483 updatetime(&ww, &tow, ep->tb*1000, 1); // Moscow -> UTC 484 484 converttime(&cti, ww, tow); 485 485 -
trunk/BNC/bnctime.cpp
r2252 r2257 6 6 7 7 #include "bnctime.h" 8 #include " RTCM3/timeutils.h"8 #include "timeutils.h" 9 9 10 10 using namespace std; -
trunk/BNS/bns.pro
r2017 r2257 33 33 bnseph.h bnsutils.h bnsrinex.h bnssp3.h bnsoutf.h \ 34 34 bnscaster.h RTCM/clock_orbit_rtcm.h bnssettings.h bnsapp.h \ 35 bnscustomtrafo.h RTCM/rtcm3torinex.h 35 bnscustomtrafo.h RTCM/rtcm3torinex.h bnctime.h 36 36 37 37 HEADERS += newmat/controlw.h newmat/include.h newmat/myexcept.h \ … … 42 42 bnseph.cpp bnsutils.cpp bnsrinex.cpp bnssp3.cpp bnsoutf.cpp \ 43 43 bnscaster.cpp bnssettings.cpp bnsapp.cpp bnscustomtrafo.cpp \ 44 RTCM/clock_orbit_rtcm.c RTCM/rtcm3torinex.c 44 RTCM/clock_orbit_rtcm.c RTCM/rtcm3torinex.c bnctime.cpp 45 45 46 46 SOURCES += newmat/bandmat.cpp newmat/cholesky.cpp newmat/evalue.cpp \
Note:
See TracChangeset
for help on using the changeset viewer.