Changeset 4029 in ntrip
- Timestamp:
- Apr 22, 2012, 9:02:03 PM (13 years ago)
- Location:
- trunk/BNC/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/ephemeris.cpp
r4028 r4029 993 993 // 994 994 ////////////////////////////////////////////////////////////////////////////// 995 QString t_eph::rinexDateStr(double version, double gps_utc) const { 995 QString t_eph::rinexDateStr(const bncTime& tt, const QString& prn, 996 double version) { 996 997 997 998 QString datStr; … … 999 1000 unsigned year, month, day, hour, min; 1000 1001 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); 1005 1004 1006 1005 QTextStream out(&datStr); 1007 1006 1008 1007 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] = ' '; 1010 1009 out << prnHlp << QString(" %1 %2 %3 %4 %5%6") 1011 1010 .arg(year % 100, 2, 10, QChar('0')) … … 1017 1016 } 1018 1017 else { 1019 out << _prn << QString(" %1 %2 %3 %4 %5 %6")1018 out << prn << QString(" %1 %2 %3 %4 %5 %6") 1020 1019 .arg(year, 4) 1021 1020 .arg(month, 2, 10, QChar('0')) … … 1033 1032 QString t_ephGPS::toString(double version) const { 1034 1033 1035 QString rnxStr = rinexDateStr( version, 0.0);1034 QString rnxStr = rinexDateStr(_TOC, _prn, version); 1036 1035 1037 1036 QTextStream out(&rnxStr); … … 1093 1092 QString t_ephGlo::toString(double version) const { 1094 1093 1095 QString rnxStr = rinexDateStr( version, _gps_utc);1094 QString rnxStr = rinexDateStr(_TOC-_gps_utc, _prn, version); 1096 1095 1097 1096 QTextStream out(&rnxStr); … … 1129 1128 QString t_ephGal::toString(double version) const { 1130 1129 1131 QString rnxStr = rinexDateStr( version, 0.0);1130 QString rnxStr = rinexDateStr(_TOC, _prn, version); 1132 1131 1133 1132 QTextStream out(&rnxStr); -
trunk/BNC/RTCM3/ephemeris.h
r4028 r4029 53 53 } 54 54 55 static QString rinexDateStr(const bncTime& tt, const QString& prn, 56 double version); 57 55 58 protected: 56 QString rinexDateStr(double version, double gps_utc) const;57 58 59 QString _prn; 59 60 bncTime _TOC;
Note:
See TracChangeset
for help on using the changeset viewer.