Changeset 4028 in ntrip


Ignore:
Timestamp:
Apr 22, 2012, 8:57:51 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/RTCM3
Files:
2 edited

Legend:

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

    r4027 r4028  
    993993//
    994994//////////////////////////////////////////////////////////////////////////////
    995 QString t_eph::rinexDateStr(double version) const {
     995QString t_eph::rinexDateStr(double version, double gps_utc) const {
    996996
    997997  QString datStr;
     
    999999  unsigned year, month, day, hour, min;
    10001000  double   sec;
    1001   _TOC.civil_date(year, month, day);
    1002   _TOC.civil_time(hour, min, sec);
     1001
     1002  bncTime hlp = _TOC - gps_utc;
     1003  hlp.civil_date(year, month, day);
     1004  hlp.civil_time(hour, min, sec);
    10031005 
    10041006  QTextStream out(&datStr);
     
    10311033QString t_ephGPS::toString(double version) const {
    10321034
    1033   QString rnxStr = rinexDateStr(version);
     1035  QString rnxStr = rinexDateStr(version, 0.0);
    10341036 
    10351037  QTextStream out(&rnxStr);
     
    10911093QString t_ephGlo::toString(double version) const {
    10921094
    1093   QString rnxStr = rinexDateStr(version);
     1095  QString rnxStr = rinexDateStr(version, _gps_utc);
    10941096
    10951097  QTextStream out(&rnxStr);
     
    11271129QString t_ephGal::toString(double version) const {
    11281130
    1129   QString rnxStr = rinexDateStr(version);
     1131  QString rnxStr = rinexDateStr(version, 0.0);
    11301132
    11311133  QTextStream out(&rnxStr);
  • trunk/BNC/RTCM3/ephemeris.h

    r4023 r4028  
    5454
    5555 protected: 
    56   QString rinexDateStr(double version) const;
     56  QString rinexDateStr(double version, double gps_utc) const;
    5757
    5858  QString   _prn;
Note: See TracChangeset for help on using the changeset viewer.