Changeset 6226 in ntrip


Ignore:
Timestamp:
Oct 11, 2014, 3:23:36 PM (8 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncrinex.cpp

    r6225 r6226  
    435435    t_rnxObsFile::t_rnxSat rnxSat;
    436436    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
    437465
    438466    rnxEpo.rnxSat.push_back(rnxSat);
     
    441469  // Write the epoch
    442470  // ---------------
    443   QString outLines;
     471  QByteArray outLines;
    444472  QTextStream outStream(&outLines);
    445473  t_rnxObsFile::writeEpoch(&outStream, _header, &rnxEpo);
    446474
    447   _out << outLines.toAscii().data();
     475  _out << outLines.data();
    448476  _out.flush();
    449477}
  • trunk/BNC/src/rinex/rnxobsfile.h

    r6225 r6226  
    9595  class t_rnxObs {
    9696   public:
     97    t_rnxObs() {
     98      value = 0.0; lli = 0; snr = 0;
     99    }
    97100    double value;
    98101    int    lli;
Note: See TracChangeset for help on using the changeset viewer.