Changeset 3869 in ntrip


Ignore:
Timestamp:
Apr 13, 2012, 12:02:43 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3868 r3869  
    670670           << QString("%1%2").arg(flag, 3).arg(epo->rnxSat.size(), 3);
    671671  for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) {
     672    const t_rnxSat& rnxSat = epo->rnxSat[iSat];
    672673    if (iSat > 0 && iSat % 12 == 0) {
    673674      *_stream << endl << QString().leftJustified(32);
    674675    }
    675     *_stream << epo->rnxSat[iSat].satSys
    676              << QString("%1").arg(epo->rnxSat[iSat].satNum, 2);
     676    *_stream << rnxSat.satSys << QString("%1").arg(rnxSat.satNum, 2);
    677677  }
    678678  *_stream << endl;
     
    719719           << QString("%1%2\n").arg(flag, 3).arg(epo->rnxSat.size(), 3);
    720720
    721 }
     721  for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) {
     722    const t_rnxSat& rnxSat = epo->rnxSat[iSat];
     723    *_stream << rnxSat.satSys
     724             << QString("%1").arg(rnxSat.satNum, 2, 10, QChar('0'));
     725    for (unsigned iType = 0; iType < rnxSat.obs.size(); iType++) {
     726      if (rnxSat.obs[iType] == 0.0) {
     727        *_stream << QString().leftJustified(16);
     728      }
     729      else {
     730        *_stream << QString("%1%2%3")
     731          .arg(rnxSat.obs[iType], 14, 'f', 3)
     732          .arg(rnxSat.lli[iType],1)
     733          .arg(rnxSat.snr[iType],1);
     734      }
     735    }
     736    *_stream << endl;
     737  }
     738}
Note: See TracChangeset for help on using the changeset viewer.