Changeset 3858 in ntrip


Ignore:
Timestamp:
Apr 12, 2012, 7:32:32 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3857 r3858  
    651651  *_stream << dateStr
    652652           << QString("%1%2").arg(flag, 3).arg(epo->rnxSat.size(), 3);
    653   for (unsigned ii = 0; ii < epo->rnxSat.size(); ii++) {
    654     if (ii > 0 && ii % 12 == 0) {
     653  for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) {
     654    if (iSat > 0 && iSat % 12 == 0) {
    655655      *_stream << endl << QString().leftJustified(32);
    656656    }
    657     *_stream << epo->rnxSat[ii].satSys
    658              << QString("%1").arg(epo->rnxSat[ii].satNum, 2);
     657    *_stream << epo->rnxSat[iSat].satSys
     658             << QString("%1").arg(epo->rnxSat[iSat].satNum, 2);
    659659  }
    660660  *_stream << endl;
     661  for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) {
     662    const t_rnxSat& rnxSat = epo->rnxSat[iSat];
     663    for (unsigned iType = 0; iType < rnxSat.obs.size(); iType++) {
     664      if (iType > 0 && iType % 5 == 0) {
     665        *_stream << endl;
     666      }
     667      if (rnxSat.obs[iType] == 0.0) {
     668        *_stream << QString().leftJustified(16);
     669      }
     670      else {
     671        *_stream << QString("%1%2%3")
     672          .arg(rnxSat.obs[iType], 14, 'f', 3)
     673          .arg(rnxSat.lli[iType],1)
     674          .arg(rnxSat.snr[iType],1);
     675      }
     676    }
     677    *_stream << endl;
     678  }
    661679
    662680// 09  1 13  2  0  0.0000000  0  9G28G27G20G19G17G11G 8R 7R20
Note: See TracChangeset for help on using the changeset viewer.