Changeset 4390 in ntrip for trunk/BNC/src
- Timestamp:
- Jul 6, 2012, 2:49:06 PM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r4389 r4390 103 103 104 104 _samplingRate = settings.value("rnxSampl").toInt(); 105 106 // Initialize RINEX v3 Types 107 // ------------------------- 108 _rnxTypes['G'] << "C1C" << "L1C" << "D1C" << "S1C" 109 << "C1W" << "L1W" << "D1W" << "S1W" 110 << "C2P" << "L2P" << "D2P" << "S2P" 111 << "C2X" << "L2X" << "D2X" << "S2X" 112 << "C5" << "L5" << "D5" << "S5"; 113 114 _rnxTypes['R'] << "C1C" << "L1C" << "D1C" << "S1C" 115 << "C1P" << "L1P" << "D1P" << "S1P" 116 << "C2P" << "L2P" << "D2P" << "S2P" 117 << "C2C" << "L2C" << "D2C" << "S2C"; 118 119 _rnxTypes['S'] << "C1C" << "L1C" << "D1C" << "S1C" 120 << "C5I" << "L5I" << "D5I" << "S5I"; 121 122 _rnxTypes['E'] << "C1" << "L1" << "D1" << "S1" 123 << "C5" << "L5" << "D5" << "S5"; 124 125 _rnxTypes['J'] << "C1C" << "L1C" << "D1C" << "S1C" 126 << "C1X" << "L1X" << "D1X" << "S1X" 127 << "C2X" << "L2X" << "D2X" << "S2X" 128 << "C5" << "L5" << "D5" << "S5" 129 << "C6" << "L6" << "D6" << "S6"; 130 131 _rnxTypes['C'] << "C2" << "L2" << "D2" << "S2" 132 << "C6" << "L6" << "D6" << "S6" 133 << "C7" << "L7" << "D7" << "S7"; 105 134 } 106 135 … … 504 533 << " " << "ANTENNA: DELTA H/E/N" << endl; 505 534 if (_rinexVers == 3) { 506 _out << "G 20 C1C L1C D1C S1C C1W L1W D1W S1W C2P L2P D2P S2P C2X SYS / # / OBS TYPES" << endl; 507 _out << " L2X D2X S2X C5 L5 D5 S5 SYS / # / OBS TYPES" << endl; 508 _out << "R 16 C1C L1C D1C S1C C1P L1P D1P S1P C2P L2P D2P S2P C2C SYS / # / OBS TYPES" << endl; 509 _out << " L2C D2C S2C SYS / # / OBS TYPES" << endl; 510 _out << "S 8 C1C L1C D1C S1C C1W L1W D1W S1W SYS / # / OBS TYPES" << endl; 511 _out << "E 8 C1 L1 D1 S1 C5 L5 D5 S5 SYS / # / OBS TYPES" << endl; 512 _out << "J 16 C1C L1C D1C S1C C1X L1X D1X S1X C2X L2X D2X S2X C5 SYS / # / OBS TYPES" << endl; 513 _out << " L5 D5 S5 SYS / # / OBS TYPES" << endl; 514 _out << "C 4 C2I L2I D2I S2I SYS / # / OBS TYPES" << endl; 535 QMapIterator<char, QVector<QString> > it(_rnxTypes); 536 while (it.hasNext()) { 537 it.next(); 538 char sys = it.key(); 539 const QVector<QString>& types = it.value(); 540 QString hlp; 541 QTextStream(&hlp) << QString("%1 %2").arg(sys).arg(types.size(), 3); 542 for (int ii = 0; ii < types.size(); ii++) { 543 QTextStream(&hlp) << QString(" %1").arg(types[ii], -3); 544 if ((ii+1) % 13 == 0 || ii == types.size()-1) { 545 _out << QString(hlp.leftJustified(60) + "SYS / # / OBS TYPES\n").toAscii().data(); 546 hlp = QString().leftJustified(6); 547 } 548 } 549 } 515 550 } 516 551 else { … … 705 740 unsigned df = (1 << iEntry); 706 741 if (df & obs._dataflags) { 707 str << obs.entry2str(iEntry)<< ' '742 str << ' ' << obs.entry2str(iEntry) << ' ' << obs._codetype[iEntry] << ' ' 708 743 << setw(14) << setprecision(3) << obs._measdata[iEntry] << ' '; 709 744 } … … 746 781 unsigned df = (1 << iEntry); 747 782 if (df & obs._dataflags) { 748 str << obs.entry2str(iEntry) << ' '783 str << ' ' << obs.entry2str(iEntry) << ' ' 749 784 << setw(14) << setprecision(3) << obs._measdata[iEntry] << ' '; 750 785 // TODO: handle slip counters -
trunk/BNC/src/bncrinex.h
r4278 r4390 95 95 QMap<QString, int> _slip_cnt_L2; 96 96 QMap<QString, int> _slip_cnt_L5; 97 98 QMap<char, QVector<QString> > _rnxTypes; 97 99 }; 98 100
Note:
See TracChangeset
for help on using the changeset viewer.