Changeset 6188 in ntrip for trunk/BNC/src
- Timestamp:
- Sep 14, 2014, 3:56:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r6149 r6188 988 988 if (rnxSat.obs.contains(type)) { 989 989 const t_rnxObs& rnxObs = rnxSat.obs[type]; 990 string type2ch(type.mid(1).toAscii().data()); 991 992 993 t_frqObs* frqObs = 0; 994 for (unsigned iFrq = 0; iFrq < obs._obs.size(); iFrq++) { 995 if (obs._obs[iFrq]->_rnxType2ch == type2ch) { 996 frqObs = obs._obs[iFrq]; 990 if (rnxObs.value != 0.0) { 991 string type2ch(type.mid(1).toAscii().data()); 992 993 t_frqObs* frqObs = 0; 994 for (unsigned iFrq = 0; iFrq < obs._obs.size(); iFrq++) { 995 if (obs._obs[iFrq]->_rnxType2ch == type2ch) { 996 frqObs = obs._obs[iFrq]; 997 break; 998 } 999 } 1000 if (frqObs == 0) { 1001 frqObs = new t_frqObs; 1002 frqObs->_rnxType2ch = type2ch; 1003 obs._obs.push_back(frqObs); 1004 } 1005 1006 switch( type.toAscii().data()[0] ) { 1007 case 'C': 1008 frqObs->_codeValid = true; 1009 frqObs->_code = rnxObs.value; 997 1010 break; 998 } 999 } 1000 if (frqObs == 0) { 1001 frqObs = new t_frqObs; 1002 frqObs->_rnxType2ch = type2ch; 1003 obs._obs.push_back(frqObs); 1004 } 1005 1006 switch( type.toAscii().data()[0] ) { 1007 case 'C': 1008 frqObs->_codeValid = true; 1009 frqObs->_code = rnxObs.value; 1010 break; 1011 case 'L': 1012 frqObs->_phaseValid = true; 1013 frqObs->_phase = rnxObs.value; 1014 frqObs->_slip = (rnxObs.lli & 1); 1015 break; 1016 case 'D': 1017 frqObs->_dopplerValid = true; 1018 frqObs->_doppler = rnxObs.value; 1019 break; 1020 case 'S': 1021 frqObs->_snrValid = true; 1022 frqObs->_snr = rnxObs.value; 1023 break; 1024 } 1025 } 1026 } 1027 } 1028 1011 case 'L': 1012 frqObs->_phaseValid = true; 1013 frqObs->_phase = rnxObs.value; 1014 frqObs->_slip = (rnxObs.lli & 1); 1015 break; 1016 case 'D': 1017 frqObs->_dopplerValid = true; 1018 frqObs->_doppler = rnxObs.value; 1019 break; 1020 case 'S': 1021 frqObs->_snrValid = true; 1022 frqObs->_snr = rnxObs.value; 1023 break; 1024 } 1025 } 1026 } 1027 } 1028 } 1029
Note:
See TracChangeset
for help on using the changeset viewer.