Changeset 6246 in ntrip for trunk


Ignore:
Timestamp:
Oct 16, 2014, 11:21:41 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6245 r6246  
    883883////////////////////////////////////////////////////////////////////////////
    884884void t_rnxObsFile::writeEpoch(const t_rnxEpo* epo) {
     885  if (epo == 0) {
     886    return;
     887  }
     888  t_rnxEpo epoLocal;
     889  epoLocal.tt = epo->tt;
     890  for (unsigned ii = 0; ii < epo->rnxSat.size(); ii++) {
     891    const t_rnxSat& rnxSat = epo->rnxSat[ii];
     892    if (_header._obsTypes[rnxSat.prn.system()].size() > 0) {
     893      epoLocal.rnxSat.push_back(rnxSat);   
     894    }
     895  }
     896
    885897  if (version() < 3.0) {
    886     return writeEpochV2(_stream, _header, epo);
     898    return writeEpochV2(_stream, _header, &epoLocal);
    887899  }
    888900  else {
    889     return writeEpochV3(_stream, _header, epo);
     901    return writeEpochV3(_stream, _header, &epoLocal);
    890902  }
    891903}
Note: See TracChangeset for help on using the changeset viewer.