Changeset 6127 in ntrip


Ignore:
Timestamp:
Sep 11, 2014, 3:45:51 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6126 r6127  
    853853      else {
    854854        const t_rnxObs& rnxObs = rnxSat.obs[type];
    855         *_stream << QString("%1").arg(rnxObs.value, 14, 'f', 3);
    856         if (rnxObs.lli != 0.0) {
    857           *_stream << QString("%1").arg(rnxObs.lli,1);
     855        if (rnxObs.value == 0.0) {
     856          *_stream << QString().leftJustified(16);
    858857        }
    859858        else {
    860           *_stream << ' ';
    861         }
    862         if (rnxObs.snr != 0.0) {
    863           *_stream << QString("%1").arg(rnxObs.snr,1);
    864         }
    865         else {
    866           *_stream << ' ';
     859          *_stream << QString("%1").arg(rnxObs.value, 14, 'f', 3);
     860          if (rnxObs.lli != 0.0) {
     861            *_stream << QString("%1").arg(rnxObs.lli,1);
     862          }
     863          else {
     864            *_stream << ' ';
     865          }
     866          if (rnxObs.snr != 0.0) {
     867            *_stream << QString("%1").arg(rnxObs.snr,1);
     868          }
     869          else {
     870            *_stream << ' ';
     871          }
    867872        }
    868873      }
     
    905910      else {
    906911        const t_rnxObs& rnxObs = rnxSat.obs[type];
    907         *_stream << QString("%1").arg(rnxObs.value, 14, 'f', 3);
    908         if (rnxObs.lli != 0.0) {
    909           *_stream << QString("%1").arg(rnxObs.lli,1);
     912        if (rnxObs.value == 0.0) {
     913          *_stream << QString().leftJustified(16);
    910914        }
    911915        else {
    912           *_stream << ' ';
    913         }
    914         if (rnxObs.snr != 0.0) {
    915           *_stream << QString("%1").arg(rnxObs.snr,1);
    916         }
    917         else {
    918           *_stream << ' ';
     916          *_stream << QString("%1").arg(rnxObs.value, 14, 'f', 3);
     917          if (rnxObs.lli != 0.0) {
     918            *_stream << QString("%1").arg(rnxObs.lli,1);
     919          }
     920          else {
     921            *_stream << ' ';
     922          }
     923          if (rnxObs.snr != 0.0) {
     924            *_stream << QString("%1").arg(rnxObs.snr,1);
     925          }
     926          else {
     927            *_stream << ' ';
     928          }
    919929        }
    920930      }
Note: See TracChangeset for help on using the changeset viewer.