Changeset 6232 in ntrip


Ignore:
Timestamp:
Oct 11, 2014, 4:58:43 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6231 r6232  
    916916      bool    found  = false;
    917917   
    918       const QString preferredAttrib = "CWPX_";
     918      const QString preferredAttrib = "CWPX ?";
    919919      for (int iPref = 0; iPref < preferredAttrib.length(); iPref++) {
    920920        QMapIterator<QString, t_rnxObs> itObs(rnxSat.obs);
     
    923923          const QString&  type   = itObs.key();
    924924          const t_rnxObs& rnxObs = itObs.value();
    925           if (typeV2 == type3to2(sys, type)) {
    926             found = true;
    927             if (rnxObs.value == 0.0) {
    928               *stream << QString().leftJustified(16);
    929             }
    930             else {
    931               *stream << QString("%1").arg(rnxObs.value, 14, 'f', 3);
    932               if (rnxObs.lli != 0.0) {
    933                 *stream << QString("%1").arg(rnxObs.lli,1);
     925          if ( preferredAttrib[iPref] == '?'                             ||
     926               (type.length() == 2 && preferredAttrib[iPref] == ' '    ) ||
     927               (type.length() == 3 && preferredAttrib[iPref] == type[2]) ) {
     928            if (typeV2 == type3to2(sys, type)) {
     929              found = true;
     930              if (rnxObs.value == 0.0) {
     931                *stream << QString().leftJustified(16);
    934932              }
    935933              else {
    936                 *stream << ' ';
     934                *stream << QString("%1").arg(rnxObs.value, 14, 'f', 3);
     935                if (rnxObs.lli != 0.0) {
     936                  *stream << QString("%1").arg(rnxObs.lli,1);
     937                }
     938                else {
     939                  *stream << ' ';
     940                }
     941                if (rnxObs.snr != 0.0) {
     942                  *stream << QString("%1").arg(rnxObs.snr,1);
     943                }
     944                else {
     945                  *stream << ' ';
     946                }
    937947              }
    938               if (rnxObs.snr != 0.0) {
    939                 *stream << QString("%1").arg(rnxObs.snr,1);
    940               }
    941               else {
    942                 *stream << ' ';
    943               }
     948              break;
    944949            }
    945             break;
    946950          }
    947951        }
Note: See TracChangeset for help on using the changeset viewer.