Changeset 3964 in ntrip


Ignore:
Timestamp:
Apr 20, 2012, 11:42:49 AM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3962 r3964  
    829829    *_stream << rnxSat.satSys
    830830             << QString("%1").arg(rnxSat.satNum, 2, 10, QChar('0'));
    831     for (unsigned iType = 0; iType < rnxSat.obs.size(); iType++) {
    832       if (rnxSat.obs[iType] == 0.0) {
     831
     832    for (unsigned iTypeOld = 0; iTypeOld < rnxSat.obs.size(); iTypeOld++) {
     833
     834      int iTypeNew;
     835      if   (_trafo == trafoNone) {
     836        iTypeNew = iTypeOld;
     837      }
     838      else {
     839        iTypeNew = _indexMap2to3[rnxSat.satSys][iTypeOld];
     840        if (iTypeNew == -1) {
     841          continue;
     842        }
     843      }
     844
     845      if (rnxSat.obs[iTypeNew] == 0.0) {
    833846        *_stream << QString().leftJustified(16);
    834847      }
    835848      else {
    836849        *_stream << QString("%1%2%3")
    837           .arg(rnxSat.obs[iType], 14, 'f', 3)
    838           .arg(rnxSat.lli[iType],1)
    839           .arg(rnxSat.snr[iType],1);
     850          .arg(rnxSat.obs[iTypeNew], 14, 'f', 3)
     851          .arg(rnxSat.lli[iTypeNew],1)
     852          .arg(rnxSat.snr[iTypeNew],1);
    840853      }
    841854    }
Note: See TracChangeset for help on using the changeset viewer.