Changeset 4987 in ntrip
- Timestamp:
- Mar 20, 2013, 9:57:46 AM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccaster.cpp
r4793 r4987 340 340 QList<t_obs> allObs = _epochs->values(sec); 341 341 342 bool firstEpoLine = true; 343 342 344 QListIterator<t_obs> it(allObs); 343 345 while (it.hasNext()) { … … 349 351 ostringstream oStr; 350 352 oStr.setf(ios::showpoint | ios::fixed); 351 oStr << obs.StatID << " " 352 << obs.GPSWeek << " " 353 << setprecision(7) << obs.GPSWeeks << " " 354 << bncRinex::asciiSatLine(obs) << endl; 353 if (firstEpoLine) { 354 firstEpoLine = false; 355 oStr << "> " << obs.GPSWeek << ' ' 356 << setprecision(7) << obs.GPSWeeks << endl;; 357 } 358 oStr << obs.StatID << ' ' << bncRinex::asciiSatLine(obs) << endl; 355 359 if (!it.hasNext()) { 356 360 oStr << endl; -
trunk/BNC/src/bncrinex.cpp
r4888 r4987 636 636 637 637 if (obs.satSys == 'R') { // Glonass 638 str << ' ' << setw(2) << obs.slotNum ;638 str << ' ' << setw(2) << obs.slotNum << ' '; 639 639 } 640 640 else { 641 str << " ";641 str << " "; 642 642 } 643 643 644 644 float rnxVers = 3.0; 645 645 646 if (obs.satSys == 'G') { // GPS 647 str << " 1C " 648 << obsToStr(obs.measdata("C1C", rnxVers)) << ' ' 649 << obsToStr(obs.measdata("L1C", rnxVers)) << ' ' 650 << obsToStr(obs.measdata("D1C", rnxVers)) << ' ' 651 << obsToStr(obs.measdata("S1C", rnxVers), 8, 3) << ' ' 652 << setw(2) << obs.slip_cnt_L1; 653 str << " 1P " 654 << obsToStr(obs.measdata("C1P", rnxVers)) << ' ' 655 << obsToStr(obs.measdata("L1P", rnxVers)) << ' ' 656 << obsToStr(obs.measdata("D1P", rnxVers)) << ' ' 657 << obsToStr(obs.measdata("S1P", rnxVers), 8, 3) << ' ' 658 << setw(2) << obs.slip_cnt_L1; 659 if (obs.measdata("C2P", rnxVers) != 0.0) { 660 str << " 2P " 661 << obsToStr(obs.measdata("C2P", rnxVers)) << ' ' 662 << obsToStr(obs.measdata("L2P", rnxVers)) << ' ' 663 << obsToStr(obs.measdata("D2P", rnxVers)) << ' ' 664 << obsToStr(obs.measdata("S2P", rnxVers), 8, 3) << ' ' 665 << setw(2) << obs.slip_cnt_L2; 666 } 667 else if (obs.measdata("C2C", rnxVers) != 0.0) { 668 str << " 2C " 669 << obsToStr(obs.measdata("C2C", rnxVers)) << ' ' 670 << obsToStr(obs.measdata("L2C", rnxVers)) << ' ' 671 << obsToStr(obs.measdata("D2C", rnxVers)) << ' ' 672 << obsToStr(obs.measdata("S2C", rnxVers), 8, 3) << ' ' 673 << setw(2) << obs.slip_cnt_L2; 674 } 675 str << " 5C " 676 << obsToStr(obs.measdata("C5", rnxVers)) << ' ' 677 << obsToStr(obs.measdata("L5", rnxVers)) << ' ' 678 << obsToStr(obs.measdata("D5", rnxVers)) << ' ' 679 << obsToStr(obs.measdata("S5", rnxVers), 8, 3) << ' ' 680 << setw(2) << obs.slip_cnt_L5; 681 } 682 else if (obs.satSys == 'R') { // Glonass 683 str << " 1C " 684 << obsToStr(obs.measdata("C1C", rnxVers)) << ' ' 685 << obsToStr(obs.measdata("L1C", rnxVers)) << ' ' 686 << obsToStr(obs.measdata("D1C", rnxVers)) << ' ' 687 << obsToStr(obs.measdata("S1C", rnxVers), 8, 3) << ' ' 688 << setw(2) << obs.slip_cnt_L1; 689 str << " 1P " 690 << obsToStr(obs.measdata("C1P", rnxVers)) << ' ' 691 << obsToStr(obs.measdata("L1P", rnxVers)) << ' ' 692 << obsToStr(obs.measdata("D1P", rnxVers)) << ' ' 693 << obsToStr(obs.measdata("S1P", rnxVers), 8, 3) << ' ' 694 << setw(2) << obs.slip_cnt_L1; 695 str << " 2P " 696 << obsToStr(obs.measdata("C2P", rnxVers)) << ' ' 697 << obsToStr(obs.measdata("L2P", rnxVers)) << ' ' 698 << obsToStr(obs.measdata("D2P", rnxVers)) << ' ' 699 << obsToStr(obs.measdata("S2P", rnxVers), 8, 3) << ' ' 700 << setw(2) << obs.slip_cnt_L2; 701 str << " 2C " 702 << obsToStr(obs.measdata("C2C", rnxVers)) << ' ' 703 << obsToStr(obs.measdata("L2C", rnxVers)) << ' ' 704 << obsToStr(obs.measdata("D2C", rnxVers)) << ' ' 705 << obsToStr(obs.measdata("S2C", rnxVers), 8, 3) << ' ' 706 << setw(2) << obs.slip_cnt_L2; 707 } 708 else if (obs.satSys == 'E') { // Galileo 709 str << " 1C " 710 << obsToStr(obs.measdata("C1", rnxVers)) << ' ' 711 << obsToStr(obs.measdata("L1", rnxVers)) << ' ' 712 << obsToStr(obs.measdata("D1", rnxVers)) << ' ' 713 << obsToStr(obs.measdata("S1", rnxVers), 8, 3) << ' ' 714 << setw(2) << obs.slip_cnt_L1; 715 716 str << " 5C " 717 << obsToStr(obs.measdata("C5", rnxVers)) << ' ' 718 << obsToStr(obs.measdata("L5", rnxVers)) << ' ' 719 << obsToStr(obs.measdata("D5", rnxVers)) << ' ' 720 << obsToStr(obs.measdata("S5", rnxVers), 8, 3) << ' ' 721 << setw(2) << obs.slip_cnt_L5; 722 } 646 for (int ie = 0; ie < GNSSENTRY_NUMBER; ie++) { 647 QString rnxStr = obs.rnxStr(ie); 648 if (rnxStr.length() >= 2 && (rnxStr[0] == 'C' || rnxStr[0] == 'L')) { 649 double data = obs.measdata(rnxStr, rnxVers); 650 if (data != 0) { 651 str << ' ' << rnxStr.toAscii().data() << ' ' << obsToStr(data); 652 if (rnxStr[0] == 'L') { 653 int slipCnt = 0; 654 if (rnxStr[1] == '1') { 655 slipCnt = obs.slip_cnt_L1; 656 } 657 else if (rnxStr[1] == '2') { 658 slipCnt = obs.slip_cnt_L2; 659 } 660 else if (rnxStr[1] == '5') { 661 slipCnt = obs.slip_cnt_L5; 662 } 663 str << ' ' << setw(2) << slipCnt; 664 } 665 } 666 } 667 } 668 723 669 return str.str(); 724 670 }
Note:
See TracChangeset
for help on using the changeset viewer.