Changeset 2234 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- Jan 12, 2010, 1:13:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/ephemeris.cpp
r2223 r2234 1 1 #include <math.h> 2 2 #include <sstream> 3 #include <iostream> 3 4 #include <iomanip> 4 5 #include <cstring> 6 7 #include <newmatio.h> 5 8 6 9 #include "ephemeris.h" … … 251 254 _prn = prn.str(); 252 255 253 _GPSweek = ee->GPSWeek; 254 _GPSweeks = ee->GPSTOW; 255 256 int ww = ee->GPSWeek; 257 int tow = ee->GPSTOW; 258 259 updatetime(&ww, &tow, ee->tb*1000, 1); 260 261 int tk = ee->tk-3*60*60; 262 if (tk < 0) { 263 tk += 86400; 264 } 265 266 _GPSweek = ww; 267 _GPSweeks = tow; 256 268 _gps_utc = 0.0; 257 269 _E = ee->E; … … 269 281 _health = 0; 270 282 _frequency_number = ee->frequency_number; 271 _tki = ee->tk;283 _tki = tk; 272 284 273 285 // Initialize status vector … … 281 293 _xv(5) = _y_velocity * 1.e3; 282 294 _xv(6) = _z_velocity * 1.e3; 283 } 295 296 cout << _prn << " " << _GPSweek << " " << _GPSweeks << " " 297 << _tki << " " << _xv << endl; 298 299 }
Note:
See TracChangeset
for help on using the changeset viewer.