Changeset 4029 in ntrip


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

Legend:

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

    r4028 r4029  
    993993//
    994994//////////////////////////////////////////////////////////////////////////////
    995 QString t_eph::rinexDateStr(double version, double gps_utc) const {
     995QString t_eph::rinexDateStr(const bncTime& tt, const QString& prn,
     996                            double version) {
    996997
    997998  QString datStr;
     
    9991000  unsigned year, month, day, hour, min;
    10001001  double   sec;
    1001 
    1002   bncTime hlp = _TOC - gps_utc;
    1003   hlp.civil_date(year, month, day);
    1004   hlp.civil_time(hour, min, sec);
     1002  tt.civil_date(year, month, day);
     1003  tt.civil_time(hour, min, sec);
    10051004 
    10061005  QTextStream out(&datStr);
    10071006
    10081007  if (version < 3.0) {
    1009     QString prnHlp = _prn.mid(1,2); if (prnHlp[0] == '0') prnHlp[0] = ' ';
     1008    QString prnHlp = prn.mid(1,2); if (prnHlp[0] == '0') prnHlp[0] = ' ';
    10101009    out << prnHlp << QString(" %1 %2 %3 %4 %5%6")
    10111010      .arg(year % 100, 2, 10, QChar('0'))
     
    10171016  }
    10181017  else {
    1019     out << _prn << QString(" %1 %2 %3 %4 %5 %6")
     1018    out << prn << QString(" %1 %2 %3 %4 %5 %6")
    10201019      .arg(year,     4)
    10211020      .arg(month,    2, 10, QChar('0'))
     
    10331032QString t_ephGPS::toString(double version) const {
    10341033
    1035   QString rnxStr = rinexDateStr(version, 0.0);
     1034  QString rnxStr = rinexDateStr(_TOC, _prn, version);
    10361035 
    10371036  QTextStream out(&rnxStr);
     
    10931092QString t_ephGlo::toString(double version) const {
    10941093
    1095   QString rnxStr = rinexDateStr(version, _gps_utc);
     1094  QString rnxStr = rinexDateStr(_TOC-_gps_utc, _prn, version);
    10961095
    10971096  QTextStream out(&rnxStr);
     
    11291128QString t_ephGal::toString(double version) const {
    11301129
    1131   QString rnxStr = rinexDateStr(version, 0.0);
     1130  QString rnxStr = rinexDateStr(_TOC, _prn, version);
    11321131
    11331132  QTextStream out(&rnxStr);
  • trunk/BNC/RTCM3/ephemeris.h

    r4028 r4029  
    5353  }
    5454
     55  static QString rinexDateStr(const bncTime& tt, const QString& prn,
     56                              double version);
     57
    5558 protected: 
    56   QString rinexDateStr(double version, double gps_utc) const;
    57 
    5859  QString   _prn;
    5960  bncTime   _TOC;
Note: See TracChangeset for help on using the changeset viewer.