Changeset 6231 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Oct 11, 2014, 4:50:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r6230 r6231 915 915 QString typeV2 = header.obsType(sys, iTypeV2); 916 916 bool found = false; 917 QMapIterator<QString, t_rnxObs> itObs(rnxSat.obs); 918 while (itObs.hasNext()) { 919 itObs.next(); 920 const QString& type = itObs.key(); 921 const t_rnxObs& rnxObs = itObs.value(); 922 if (typeV2 == type3to2(sys, type)) { 923 found = true; 924 if (rnxObs.value == 0.0) { 925 *stream << QString().leftJustified(16); 926 } 927 else { 928 *stream << QString("%1").arg(rnxObs.value, 14, 'f', 3); 929 if (rnxObs.lli != 0.0) { 930 *stream << QString("%1").arg(rnxObs.lli,1); 917 918 const QString preferredAttrib = "CWPX_"; 919 for (int iPref = 0; iPref < preferredAttrib.length(); iPref++) { 920 QMapIterator<QString, t_rnxObs> itObs(rnxSat.obs); 921 while (itObs.hasNext()) { 922 itObs.next(); 923 const QString& type = itObs.key(); 924 const t_rnxObs& rnxObs = itObs.value(); 925 if (typeV2 == type3to2(sys, type)) { 926 found = true; 927 if (rnxObs.value == 0.0) { 928 *stream << QString().leftJustified(16); 931 929 } 932 930 else { 933 *stream << ' '; 931 *stream << QString("%1").arg(rnxObs.value, 14, 'f', 3); 932 if (rnxObs.lli != 0.0) { 933 *stream << QString("%1").arg(rnxObs.lli,1); 934 } 935 else { 936 *stream << ' '; 937 } 938 if (rnxObs.snr != 0.0) { 939 *stream << QString("%1").arg(rnxObs.snr,1); 940 } 941 else { 942 *stream << ' '; 943 } 934 944 } 935 if (rnxObs.snr != 0.0) { 936 *stream << QString("%1").arg(rnxObs.snr,1); 937 } 938 else { 939 *stream << ' '; 940 } 945 break; 941 946 } 947 } 948 if (found) { 942 949 break; 943 950 }
Note:
See TracChangeset
for help on using the changeset viewer.