Changeset 6232 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Oct 11, 2014, 4:58:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/rinex/rnxobsfile.cpp ¶
r6231 r6232 916 916 bool found = false; 917 917 918 const QString preferredAttrib = "CWPX _";918 const QString preferredAttrib = "CWPX ?"; 919 919 for (int iPref = 0; iPref < preferredAttrib.length(); iPref++) { 920 920 QMapIterator<QString, t_rnxObs> itObs(rnxSat.obs); … … 923 923 const QString& type = itObs.key(); 924 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); 929 } 930 else { 931 *stream << QString("%1").arg(rnxObs.value, 14, 'f', 3); 932 if (rnxObs.lli != 0.0) { 933 *stream << QString("%1").arg(rnxObs.lli,1); 925 if ( preferredAttrib[iPref] == '?' || 926 (type.length() == 2 && preferredAttrib[iPref] == ' ' ) || 927 (type.length() == 3 && preferredAttrib[iPref] == type[2]) ) { 928 if (typeV2 == type3to2(sys, type)) { 929 found = true; 930 if (rnxObs.value == 0.0) { 931 *stream << QString().leftJustified(16); 934 932 } 935 933 else { 936 *stream << ' '; 934 *stream << QString("%1").arg(rnxObs.value, 14, 'f', 3); 935 if (rnxObs.lli != 0.0) { 936 *stream << QString("%1").arg(rnxObs.lli,1); 937 } 938 else { 939 *stream << ' '; 940 } 941 if (rnxObs.snr != 0.0) { 942 *stream << QString("%1").arg(rnxObs.snr,1); 943 } 944 else { 945 *stream << ' '; 946 } 937 947 } 938 if (rnxObs.snr != 0.0) { 939 *stream << QString("%1").arg(rnxObs.snr,1); 940 } 941 else { 942 *stream << ' '; 943 } 948 break; 944 949 } 945 break;946 950 } 947 951 }
Note:
See TracChangeset
for help on using the changeset viewer.