Changeset 3971 in ntrip for trunk/BNC/rinex/rnxobsfile.cpp
- Timestamp:
- Apr 20, 2012, 3:03:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/rnxobsfile.cpp
r3970 r3971 624 624 if (_header._obsTypesV2[i2] == typeV2) { 625 625 found = true; 626 map<int, int>::const_iterator it2 = _indexMap2to3[sys].find(i2); 627 if (it2 == _indexMap2to3[sys].end()) { 626 if (_indexMap2to3[sys].find(i2) == _indexMap2to3[sys].end()) { 628 627 _indexMap2to3[sys][i2] = i3; 629 628 } … … 812 811 813 812 const t_rnxSat& rnxSat = epo->rnxSat[iSat]; 814 815 for (int iTypeV2 = 0; iTypeV2 < nTypes(rnxSat.satSys); iTypeV2++) { 813 char sys = rnxSat.satSys; 814 815 for (int iTypeV2 = 0; iTypeV2 < nTypes(sys); iTypeV2++) { 816 816 817 817 if (iTypeV2 > 0 && iTypeV2 % 5 == 0) { … … 819 819 } 820 820 821 int iType ;821 int iType = -1; 822 822 if (_trafo == trafoNone) { 823 823 iType = iTypeV2; 824 824 } 825 825 else { 826 iType = _indexMap2to3[rnxSat.satSys][iTypeV2]; 827 } 828 829 if (rnxSat.obs[iType] == 0.0) { 826 if (_indexMap2to3[sys].find(iTypeV2) != _indexMap2to3[sys].end()) { 827 iType = _indexMap2to3[sys][iTypeV2]; 828 } 829 } 830 831 if (iType == -1 || rnxSat.obs[iType] == 0.0) { 830 832 *_stream << QString().leftJustified(16); 831 833 } … … 865 867 for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) { 866 868 const t_rnxSat& rnxSat = epo->rnxSat[iSat]; 867 *_stream << rnxSat.satSys 869 char sys = rnxSat.satSys; 870 *_stream << sys 868 871 << QString("%1").arg(rnxSat.satNum, 2, 10, QChar('0')); 869 872 870 for (int iTypeV3 = 0; iTypeV3 < nTypes( rnxSat.satSys); iTypeV3++) {871 872 int iType ;873 for (int iTypeV3 = 0; iTypeV3 < nTypes(sys); iTypeV3++) { 874 875 int iType = -1; 873 876 if (_trafo == trafoNone) { 874 877 iType = iTypeV3; 875 878 } 876 879 else { 877 iType = _indexMap3to2[rnxSat.satSys][iTypeV3]; 878 } 879 880 if (rnxSat.obs[iType] == 0.0) { 880 if (_indexMap3to2[sys].find(iTypeV3) != _indexMap3to2[sys].end()) { 881 iType = _indexMap3to2[sys][iTypeV3]; 882 } 883 } 884 885 if (iType == -1 || rnxSat.obs[iType] == 0.0) { 881 886 *_stream << QString().leftJustified(16); 882 887 }
Note:
See TracChangeset
for help on using the changeset viewer.