Changeset 3979 in ntrip


Ignore:
Timestamp:
Apr 21, 2012, 11:02:25 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3971 r3979  
    833833      }
    834834      else {
    835         *_stream << QString("%1%2%3")
    836           .arg(rnxSat.obs[iType], 14, 'f', 3)
    837           .arg(rnxSat.lli[iType],1)
    838           .arg(rnxSat.snr[iType],1);
     835        *_stream << QString("%1").arg(rnxSat.obs[iType], 14, 'f', 3);
     836        if (rnxSat.lli[iType] != 0.0) {
     837          *_stream << QString("%1").arg(rnxSat.lli[iType],1);
     838        }
     839        else {
     840          *_stream << ' ';
     841        }
     842        if (rnxSat.snr[iType] != 0.0) {
     843          *_stream << QString("%1").arg(rnxSat.snr[iType],1);
     844        }
     845        else {
     846          *_stream << ' ';
     847        }
    839848      }
    840849    }
     
    887896      }
    888897      else {
    889         *_stream << QString("%1%2%3")
    890           .arg(rnxSat.obs[iType], 14, 'f', 3)
    891           .arg(rnxSat.lli[iType],1)
    892           .arg(rnxSat.snr[iType],1);
     898        *_stream << QString("%1").arg(rnxSat.obs[iType], 14, 'f', 3);
     899        if (rnxSat.lli[iType] != 0.0) {
     900          *_stream << QString("%1").arg(rnxSat.lli[iType],1);
     901        }
     902        else {
     903          *_stream << ' ';
     904        }
     905        if (rnxSat.snr[iType] != 0.0) {
     906          *_stream << QString("%1").arg(rnxSat.snr[iType],1);
     907        }
     908        else {
     909          *_stream << ' ';
     910        }
    893911      }
    894912    }
Note: See TracChangeset for help on using the changeset viewer.