Changeset 2861 in ntrip
- Timestamp:
- Jan 21, 2011, 12:00:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r2785 r2861 466 466 converttime(&cti, ep->GPSweek, ep->TOC); 467 467 468 lineV3.sprintf("G%02d %04d %02d %02d %02d %02d %02d %18.11e %18.11e %18.11e\n",468 lineV3.sprintf("G%02d %04d %02d %02d %02d %02d %02d%19.12e%19.12e%19.12e\n", 469 469 ep->satellite, cti.year, cti.month, cti.day, cti.hour, 470 470 cti.minute, cti.second, ep->clock_bias, ep->clock_drift, 471 471 ep->clock_driftrate); 472 472 473 lineV2.sprintf("%02d %02d %02d %02d %02d %02d%5.1f %18.11e %18.11e %18.11e\n",473 lineV2.sprintf("%02d %02d %02d %02d %02d %02d%5.1f%19.12e%19.12e%19.12e\n", 474 474 ep->satellite, cti.year%100, cti.month, cti.day, cti.hour, 475 475 cti.minute, (double) cti.second, ep->clock_bias, … … 482 482 QByteArray fmt2; 483 483 if (_rinexVers == 2) { 484 fmt = " %18.11e %18.11e %18.11e %18.11e\n";485 fmt2 = " %18.11e %18.11e\n";484 fmt = " %19.12e%19.12e%19.12e%19.12e\n"; 485 fmt2 = " %19.12e%19.12e\n"; 486 486 } 487 487 else { 488 fmt = " %18.11e %18.11e %18.11e %18.11e\n";489 fmt2 = " %18.11e %18.11e\n";488 fmt = " %19.12e%19.12e%19.12e%19.12e\n"; 489 fmt2 = " %19.12e%19.12e\n"; 490 490 } 491 491 … … 545 545 QString lineV3; 546 546 547 lineV3.sprintf("R%02d %04d %02d %02d %02d %02d %02d %18.11e %18.11e %18.11e\n",547 lineV3.sprintf("R%02d %04d %02d %02d %02d %02d %02d%19.12e%19.12e%19.12e\n", 548 548 ep->almanac_number, cti.year, cti.month, cti.day, cti.hour, 549 549 cti.minute, cti.second, -ep->tau, ep->gamma, (double) tk); 550 550 551 lineV2.sprintf("%02d %02d %02d %02d %02d %02d%5.1f %18.11e %18.11e %18.11e\n",551 lineV2.sprintf("%02d %02d %02d %02d %02d %02d%5.1f%19.12e%19.12e%19.12e\n", 552 552 ep->almanac_number, cti.year%100, cti.month, cti.day, 553 553 cti.hour, cti.minute, (double) cti.second, -ep->tau, … … 559 559 QByteArray fmt; 560 560 if (_rinexVers == 2) { 561 fmt = " %18.11e %18.11e %18.11e %18.11e\n";561 fmt = " %19.12e%19.12e%19.12e%19.12e\n"; 562 562 } 563 563 else { 564 fmt = " %18.11e %18.11e %18.11e %18.11e\n";564 fmt = " %19.12e%19.12e%19.12e%19.12e\n"; 565 565 } 566 566 … … 590 590 converttime(&cti, ep->Week, ep->TOC); 591 591 592 lineV3.sprintf("E%02d %04d %02d %02d %02d %02d %02d %18.11e %18.11e %18.11e\n",592 lineV3.sprintf("E%02d %04d %02d %02d %02d %02d %02d%19.12e%19.12e%19.12e\n", 593 593 ep->satellite, cti.year, cti.month, cti.day, cti.hour, 594 594 cti.minute, cti.second, ep->clock_bias, ep->clock_drift, … … 598 598 QByteArray allLines; 599 599 600 const QByteArray fmt4 = " %18.11e %18.11e %18.11e %18.11e\n";601 const QByteArray fmt3 = " %18.11e %18.11e %18.11e\n";602 const QByteArray fmt1 = " %18.11e\n";600 const QByteArray fmt4 = " %19.12e%19.12e%19.12e%19.12e\n"; 601 const QByteArray fmt3 = " %19.12e%19.12e%19.12e\n"; 602 const QByteArray fmt1 = " %19.12e\n"; 603 603 604 604 line.sprintf(fmt4.data(), (double)ep->IODnav, ep->Crs, ep->Delta_n, ep->M0);
Note:
See TracChangeset
for help on using the changeset viewer.