Changeset 8800 in ntrip
- Timestamp:
- Sep 20, 2019, 2:44:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.cpp
r8790 r8800 439 439 .arg(_OMEGADOT, 19, 'e', 12); 440 440 441 if (type() == t_eph::IRNSS) { 442 out << QString(fmt) 443 .arg(_IDOT, 19, 'e', 12) 444 .arg(0.0, 19, 'e', 12) 445 .arg(_TOEweek, 19, 'e', 12) 446 .arg(0.0, 19, 'e', 12); 447 } 448 else { 441 449 out << QString(fmt) 442 450 .arg(_IDOT, 19, 'e', 12) … … 444 452 .arg(_TOEweek, 19, 'e', 12) 445 453 .arg(_L2PFlag, 19, 'e', 12); 454 } 446 455 447 456 if (type() == t_eph::IRNSS) { … … 464 473 tot = 0.0; 465 474 } 466 out << QString(fmt) 475 if (type() == t_eph::IRNSS) { 476 out << QString(fmt) 477 .arg(tot, 19, 'e', 12) 478 .arg(0.0, 19, 'e', 12) 479 .arg("", 19, QChar(' ')) 480 .arg("", 19, QChar(' ')); 481 } 482 else { 483 out << QString(fmt) 467 484 .arg(tot, 19, 'e', 12) 468 485 .arg(_fitInterval, 19, 'e', 12) 469 486 .arg("", 19, QChar(' ')) 470 487 .arg("", 19, QChar(' ')); 488 } 471 489 472 490 return rnxStr; … … 530 548 _TOC.set(year, month, day, hour, min, sec); 531 549 _TOC = _TOC + _gps_utc; 532 550 int nd = int((_TOC.gpssec())) / (24.0*60.0*60.0); 533 551 if ( readDbl(line, pos[1], fieldLen, _tau ) || 534 552 readDbl(line, pos[2], fieldLen, _gamma) || … … 537 555 return; 538 556 } 539 540 _tau = -_tau;557 _tki -= nd * 86400.0; 558 _tau = -_tau; 541 559 } 542 560 … … 637 655 QString t_ephGlo::toString(double version) const { 638 656 639 QString rnxStr = rinexDateStr(_TOC -_gps_utc, _prn, version);640 657 QString rnxStr = rinexDateStr(_TOC -_gps_utc, _prn, version); 658 int nd = int((_TOC - _gps_utc).gpssec()) / (24.0*60.0*60.0); 641 659 QTextStream out(&rnxStr); 642 660 643 661 out << QString("%1%2%3\n") 644 .arg(-_tau, 19, 'e', 12)645 .arg(_gamma, 19, 'e', 12)646 .arg(_tki ,19, 'e', 12);662 .arg(-_tau, 19, 'e', 12) 663 .arg(_gamma, 19, 'e', 12) 664 .arg(_tki+nd*86400.0, 19, 'e', 12); 647 665 648 666 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.