- Timestamp:
- Sep 20, 2019, 2:51:29 PM (5 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/ephemeris.cpp
r8701 r8804 442 442 out << QString(fmt) 443 443 .arg(_IDOT, 19, 'e', 12) 444 .arg( "", 19, QChar(' '))444 .arg(0.0, 19, 'e', 12) 445 445 .arg(_TOEweek, 19, 'e', 12) 446 .arg( "", 19, QChar(' '));446 .arg(0.0, 19, 'e', 12); 447 447 } 448 448 else { … … 459 459 .arg(_health, 19, 'e', 12) 460 460 .arg(_TGD, 19, 'e', 12) 461 .arg( "", 19, QChar(' '));461 .arg(0.0, 19, 'e', 12); 462 462 } 463 463 else { … … 476 476 out << QString(fmt) 477 477 .arg(tot, 19, 'e', 12) 478 .arg( "", 19, QChar(' '))478 .arg(0.0, 19, 'e', 12) 479 479 .arg("", 19, QChar(' ')) 480 480 .arg("", 19, QChar(' ')); … … 548 548 _TOC.set(year, month, day, hour, min, sec); 549 549 _TOC = _TOC + _gps_utc; 550 550 int nd = int((_TOC.gpssec())) / (24.0*60.0*60.0); 551 551 if ( readDbl(line, pos[1], fieldLen, _tau ) || 552 552 readDbl(line, pos[2], fieldLen, _gamma) || … … 555 555 return; 556 556 } 557 558 _tau = -_tau;557 _tki -= nd * 86400.0; 558 _tau = -_tau; 559 559 } 560 560 … … 654 654 QString t_ephGlo::toString(double version) const { 655 655 656 QString rnxStr = rinexDateStr(_TOC -_gps_utc, _prn, version);657 656 QString rnxStr = rinexDateStr(_TOC -_gps_utc, _prn, version); 657 int nd = int((_TOC - _gps_utc).gpssec()) / (24.0*60.0*60.0); 658 658 QTextStream out(&rnxStr); 659 659 660 660 out << QString("%1%2%3\n") 661 .arg(-_tau, 19, 'e', 12)662 .arg(_gamma, 19, 'e', 12)663 .arg(_tki ,19, 'e', 12);661 .arg(-_tau, 19, 'e', 12) 662 .arg(_gamma, 19, 'e', 12) 663 .arg(_tki+nd*86400.0, 19, 'e', 12); 664 664 665 665 QString fmt = version < 3.0 ? " %1%2%3%4\n" : " %1%2%3%4\n"; -
branches/BNC_2.12/src/ephemeris.h
r8496 r8804 40 40 static QString rinexDateStr(const bncTime& tt, const QString& prnStr, double version); 41 41 static bool earlierTime(const t_eph* eph1, const t_eph* eph2) {return eph1->_TOC < eph2->_TOC;} 42 static bool prnSort(const t_eph* eph1, const t_eph* eph2) {return eph1->prn() < eph2->prn();} 42 43 43 44 protected: … … 134 135 double _L2Codes; // Codes on L2 channel (not valid for IRNSS) 135 136 double _TOEweek; 136 double _L2PFlag; // L2 P data flag (not valid for IRNSS )137 double _L2PFlag; // L2 P data flag (not valid for IRNSS and QZSS) 137 138 138 139 mutable double _ura; // SV accuracy … … 141 142 double _IODC; // (not valid for IRNSS) 142 143 143 double _TOT; // Transmiss tion time144 double _TOT; // Transmission time 144 145 double _fitInterval; // Fit interval (not valid for IRNSS) 145 146
Note:
See TracChangeset
for help on using the changeset viewer.