Changeset 2669 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- Nov 11, 2010, 10:28:51 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r2667 r2669 235 235 for (int ii = 0; ii < parser.Data.numsats; ii++) { 236 236 p_obs obs = new t_obs(); 237 _obsList.push_back(obs);238 237 if (parser.Data.satellites[ii] <= PRN_GPS_END) { 239 238 obs->_o.satSys = 'G'; … … 244 243 obs->_o.satNum = parser.Data.satellites[ii] - PRN_GLONASS_START + 1; 245 244 //// obs->_o.slotNum = parser.Data.channels[ii]; 246 obs->_o.slotNum = parser.GLOFreq[obs->_o.satNum] - 100; 245 if (obs->_o.satNum <= PRN_GLONASS_NUM && 246 parser.GLOFreq[obs->_o.satNum-1] != 0) { 247 obs->_o.slotNum = parser.GLOFreq[obs->_o.satNum-1] - 100; 248 } 249 else { 250 delete obs; 251 obs = 0; 252 } 247 253 } 248 254 else { … … 250 256 obs->_o.satNum = parser.Data.satellites[ii] - PRN_WAAS_START + 20; 251 257 } 258 259 if (obs) { 260 _obsList.push_back(obs); 261 } 262 else { 263 continue; 264 } 265 252 266 obs->_o.GPSWeek = parser.Data.week; 253 267 obs->_o.GPSWeeks = parser.Data.timeofweek / 1000.0;
Note:
See TracChangeset
for help on using the changeset viewer.