Changeset 2234 in ntrip


Ignore:
Timestamp:
Jan 12, 2010, 1:13:23 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/ephemeris.cpp

    r2223 r2234  
    11#include <math.h>
    22#include <sstream>
     3#include <iostream>
    34#include <iomanip>
    45#include <cstring>
     6
     7#include <newmatio.h>
    58
    69#include "ephemeris.h"
     
    251254  _prn = prn.str();
    252255
    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;
    256268  _gps_utc           = 0.0;
    257269  _E                 = ee->E;
     
    269281  _health            = 0;
    270282  _frequency_number  = ee->frequency_number;
    271   _tki               = ee->tk;
     283  _tki               = tk;
    272284
    273285  // Initialize status vector
     
    281293  _xv(5) = _y_velocity * 1.e3;
    282294  _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.