Changeset 7528 in ntrip for trunk/BNC/src
- Timestamp:
- Oct 20, 2015, 11:26:07 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM/RTCM2Decoder.cpp
r7169 r7528 35 35 * Created: 24-Aug-2006 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 51 51 using namespace rtcm2; 52 52 53 // 53 // 54 54 // Constructor 55 // 55 // 56 56 57 57 RTCM2Decoder::RTCM2Decoder(const std::string& ID) : _ephUser(true) { … … 59 59 } 60 60 61 // 61 // 62 62 // Destructor 63 // 63 // 64 64 65 65 RTCM2Decoder::~RTCM2Decoder() { … … 290 290 291 291 // new observation 292 t_satObs * new_obs = 0;292 t_satObs new_obs; 293 293 294 294 t_frqObs* frqObs1C = new t_frqObs; 295 295 frqObs1C->_rnxType2ch = "1C"; 296 new_obs ->_obs.push_back(frqObs1C);296 new_obs._obs.push_back(frqObs1C); 297 297 298 298 t_frqObs* frqObs1P = new t_frqObs; 299 299 frqObs1P->_rnxType2ch = (sys == 'G') ? "1W" : "1P"; 300 new_obs ->_obs.push_back(frqObs1P);300 new_obs._obs.push_back(frqObs1P); 301 301 302 302 t_frqObs* frqObs2P = new t_frqObs; 303 303 frqObs2P->_rnxType2ch = (sys == 'G') ? "2W" : "2P"; 304 new_obs ->_obs.push_back(frqObs2P);304 new_obs._obs.push_back(frqObs2P); 305 305 306 306 // missing IOD … … 367 367 *obsVal = ZEROVALUE; 368 368 369 // Allocate new memory 370 // ------------------- 371 if (!new_obs) { 372 new_obs = new t_satObs(); 373 if (corr->PRN < 200) { 374 new_obs->_prn.set('G', corr->PRN); 375 } else { 376 new_obs->_prn.set('R', corr->PRN - 200); 377 } 378 new_obs->_time.set(GPSWeek_rcv, GPSWeeks_rcv); 369 if (corr->PRN < 200) { 370 new_obs._prn.set('G', corr->PRN); 371 } else { 372 new_obs._prn.set('R', corr->PRN - 200); 379 373 } 374 new_obs._time.set(GPSWeek_rcv, GPSWeeks_rcv); 380 375 381 376 // Store estimated measurements … … 430 425 431 426 // Store new observation 432 if (new_obs) { 433 _obsList.push_back(*new_obs); 434 delete new_obs; 427 if (new_obs._time.mjd() > 0) { 428 _obsList.push_back(new_obs); 435 429 } 436 430 }
Note:
See TracChangeset
for help on using the changeset viewer.