Changeset 7817 in ntrip for trunk/BNC/src/rinex


Ignore:
Timestamp:
Feb 26, 2016, 4:18:07 PM (8 years ago)
Author:
stuerze
Message:

small bug regarding satellite number in rinex epoch fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/rnxobsfile.h

    r7665 r7817  
    210210
    211211  static void writeEpoch(QTextStream* stream, const t_rnxObsHeader& header, const t_rnxEpo* epo) {
     212    if (epo == 0) {
     213      return;
     214    }
     215    t_rnxEpo epoLocal;
     216    epoLocal.tt = epo->tt;
     217    for (unsigned ii = 0; ii < epo->rnxSat.size(); ii++) {
     218      const t_rnxSat& rnxSat = epo->rnxSat[ii];
     219      if (header._obsTypes[rnxSat.prn.system()].size() > 0) {
     220        epoLocal.rnxSat.push_back(rnxSat);
     221      }
     222    }
    212223    if (header.version() >= 3.0) {
    213       writeEpochV3(stream, header, epo);
     224      writeEpochV3(stream, header, &epoLocal);
    214225    }
    215226    else {
    216       writeEpochV2(stream, header, epo);
     227      writeEpochV2(stream, header, &epoLocal);
    217228    }
    218229  }
Note: See TracChangeset for help on using the changeset viewer.