Changeset 8804 in ntrip for branches/BNC_2.12/src/ephemeris.cpp
- Timestamp:
- Sep 20, 2019, 2:51:29 PM (5 years ago)
- File:
-
- 1 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";
Note:
See TracChangeset
for help on using the changeset viewer.