Changeset 3966 in ntrip


Ignore:
Timestamp:
Apr 20, 2012, 12:17:25 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3965 r3966  
    812812  for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) {
    813813    const t_rnxSat& rnxSat = epo->rnxSat[iSat];
    814     for (unsigned iType = 0; iType < rnxSat.obs.size(); iType++) {
    815       if (iType > 0 && iType % 5 == 0) {
     814    for (unsigned iTypeOld = 0; iTypeOld < rnxSat.obs.size(); iTypeOld++) {
     815
     816      int iTypeNew;
     817      if   (_trafo == trafoNone) {
     818        iTypeNew = iTypeOld;
     819      }
     820      else {
     821        iTypeNew = _indexMap3to2[rnxSat.satSys][iTypeOld];
     822        if (iTypeNew == -1) {
     823          continue;
     824        }
     825      }
     826
     827      if (iTypeNew > 0 && iTypeNew % 5 == 0) {
    816828        *_stream << endl;
    817829      }
    818       if (rnxSat.obs[iType] == 0.0) {
     830      if (rnxSat.obs[iTypeNew] == 0.0) {
    819831        *_stream << QString().leftJustified(16);
    820832      }
    821833      else {
    822834        *_stream << QString("%1%2%3")
    823           .arg(rnxSat.obs[iType], 14, 'f', 3)
    824           .arg(rnxSat.lli[iType],1)
    825           .arg(rnxSat.snr[iType],1);
     835          .arg(rnxSat.obs[iTypeNew], 14, 'f', 3)
     836          .arg(rnxSat.lli[iTypeNew],1)
     837          .arg(rnxSat.snr[iTypeNew],1);
    826838      }
    827839    }
Note: See TracChangeset for help on using the changeset viewer.