Changeset 4988 in ntrip


Ignore:
Timestamp:
Mar 20, 2013, 10:15:40 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncrinex.cpp

    r4987 r4988  
    646646  for (int ie = 0; ie < GNSSENTRY_NUMBER; ie++) {
    647647    QString rnxStr = obs.rnxStr(ie);
    648     if (rnxStr.length() >= 2 && (rnxStr[0] == 'C' || rnxStr[0] == 'L')) {
    649       double  data  = obs.measdata(rnxStr, rnxVers);
     648    if (rnxStr.length() >= 2) {
     649      double data = obs.measdata(rnxStr, rnxVers);
    650650      if (data != 0) {
    651         str << ' ' << rnxStr.toAscii().data() << ' ' << obsToStr(data);
     651        int width = (rnxStr[0] == 'S') ? 8 : 14;
     652        int prec  = 3;
     653        str << ' ' << rnxStr.toAscii().data()
     654            << ' ' << obsToStr(data, width, prec);
    652655        if (rnxStr[0] == 'L') {
    653656          int slipCnt = 0;
Note: See TracChangeset for help on using the changeset viewer.