Changeset 216 in ntrip for trunk/BNC/RTCM
- Timestamp:
- Oct 6, 2006, 5:26:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/RTCM2.cpp
r215 r216 1063 1063 while(true) { 1064 1064 _PP.getPacket(_buffer); 1065 if (!_PP.valid()) break; 1065 if (!_PP.valid()) { 1066 return; 1067 } 1066 1068 1067 1069 if ( _PP.ID()==18 || _PP.ID()==19 ) { 1068 1070 1069 int refWeek;1070 double refSecs;1071 gpsWeekAndSec(refWeek, refSecs);1072 1073 1071 _ObsBlock.extract(_PP); 1074 if (!_ObsBlock.valid()) continue; 1075 1076 int epochWeek; 1077 double epochSecs; 1078 _ObsBlock.resolveEpoch(refWeek, refSecs, epochWeek, epochSecs); 1072 1073 if (_ObsBlock.valid()) { 1074 1075 int refWeek; 1076 double refSecs; 1077 gpsWeekAndSec(refWeek, refSecs); 1078 int epochWeek; 1079 double epochSecs; 1080 _ObsBlock.resolveEpoch(refWeek, refSecs, epochWeek, epochSecs); 1081 1082 for (int iSat=0; iSat < _ObsBlock.nSat; iSat++) { 1083 if (_ObsBlock.PRN[iSat] <= 32) { 1084 Observation* obs = new Observation(); 1079 1085 1080 for (int iSat=0; iSat < _ObsBlock.nSat; iSat++) { 1081 if (_ObsBlock.PRN[iSat] <= 32) { 1082 Observation* obs = new Observation(); 1083 1084 obs->SVPRN = _ObsBlock.PRN[iSat]; 1085 obs->GPSWeek = epochWeek; 1086 obs->GPSWeeks = (int) epochSecs; 1087 obs->sec = _ObsBlock.secs; 1088 obs->pCodeIndicator = 0; 1089 obs->C1 = _ObsBlock.rng_C1[iSat]; 1090 obs->P2 = _ObsBlock.rng_P2[iSat]; 1091 obs->L1 = _ObsBlock.resolvedPhase_L1(iSat); 1092 obs->L2 = _ObsBlock.resolvedPhase_L2(iSat); 1093 1094 m_lObsList.push_back(obs); 1086 obs->SVPRN = _ObsBlock.PRN[iSat]; 1087 obs->GPSWeek = epochWeek; 1088 obs->GPSWeeks = (int) epochSecs; 1089 obs->sec = _ObsBlock.secs; 1090 obs->pCodeIndicator = 0; 1091 obs->C1 = _ObsBlock.rng_C1[iSat]; 1092 obs->P2 = _ObsBlock.rng_P2[iSat]; 1093 obs->L1 = _ObsBlock.resolvedPhase_L1(iSat); 1094 obs->L2 = _ObsBlock.resolvedPhase_L2(iSat); 1095 1096 m_lObsList.push_back(obs); 1097 } 1095 1098 } 1099 _ObsBlock.clear(); 1096 1100 } 1097 1098 _ObsBlock.clear();1099 1101 } 1100 1102 }
Note:
See TracChangeset
for help on using the changeset viewer.