Changeset 6226 in ntrip
- Timestamp:
- Oct 11, 2014, 3:23:36 PM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r6225 r6226 435 435 t_rnxObsFile::t_rnxSat rnxSat; 436 436 rnxSat.prn = satObs._prn; 437 for (unsigned ii = 0; ii < satObs._obs.size(); ii++) { 438 const t_frqObs* frqObs = satObs._obs[ii]; 439 if (frqObs->_codeValid) { 440 QString type = 'C' + QString(frqObs->_rnxType2ch.c_str()); 441 t_rnxObsFile::t_rnxObs rnxObs; 442 rnxObs.value = frqObs->_code; 443 rnxSat.obs[type] = rnxObs; 444 } 445 if (frqObs->_phaseValid) { 446 QString type = 'L' + QString(frqObs->_rnxType2ch.c_str()); 447 t_rnxObsFile::t_rnxObs rnxObs; 448 rnxObs.value = frqObs->_phase; 449 rnxSat.obs[type] = rnxObs; 450 } 451 if (frqObs->_dopplerValid) { 452 QString type = 'D' + QString(frqObs->_rnxType2ch.c_str()); 453 t_rnxObsFile::t_rnxObs rnxObs; 454 rnxObs.value = frqObs->_doppler; 455 rnxSat.obs[type] = rnxObs; 456 } 457 if (frqObs->_snrValid) { 458 QString type = 'S' + QString(frqObs->_rnxType2ch.c_str()); 459 t_rnxObsFile::t_rnxObs rnxObs; 460 rnxObs.value = frqObs->_snr; 461 rnxSat.obs[type] = rnxObs; 462 } 463 } 464 437 465 438 466 rnxEpo.rnxSat.push_back(rnxSat); … … 441 469 // Write the epoch 442 470 // --------------- 443 Q StringoutLines;471 QByteArray outLines; 444 472 QTextStream outStream(&outLines); 445 473 t_rnxObsFile::writeEpoch(&outStream, _header, &rnxEpo); 446 474 447 _out << outLines. toAscii().data();475 _out << outLines.data(); 448 476 _out.flush(); 449 477 } -
trunk/BNC/src/rinex/rnxobsfile.h
r6225 r6226 95 95 class t_rnxObs { 96 96 public: 97 t_rnxObs() { 98 value = 0.0; lli = 0; snr = 0; 99 } 97 100 double value; 98 101 int lli;
Note:
See TracChangeset
for help on using the changeset viewer.