Changeset 4411 in ntrip for trunk/BNC/src/RTCM


Ignore:
Timestamp:
Jul 8, 2012, 3:15:57 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM/GPSDecoder.cpp

    r4410 r4411  
    114114//////////////////////////////////////////////////////////////////////////////
    115115int t_obs::iEntry(const QString& rnxStr, float rnxVers, bool nonEmpty) const {
     116
    116117  if (rnxVers >= 3.0) {
    117118    return iEntryV3(rnxStr);
    118119  }
    119120
    120   if      (rnxStr == "C1") return iEntryV3("C1C");
    121   else if (rnxStr == "P1") return iEntryV3("C1P");
    122   else if (rnxStr == "C2") return iEntryV3("C2C");
    123   else if (rnxStr == "P2") return iEntryV3("C2P");
    124 
    125   const QString chars = "PWCZI ";
    126   for (int ii = 0; ii < chars.length(); ii++) {
    127     QString hlpStr = rnxStr + chars[ii];
    128     int ie = iEntryV3(hlpStr.trimmed());
    129     if (ie != -1 && (!nonEmpty || _measdata[ie] != 0.0)) {
    130       return ie;
     121  if (satSys == 'G' || satSys == 'R') {
     122    if      (rnxStr == "C1") return iEntryV3("C1C");
     123    else if (rnxStr == "P1") return iEntryV3("C1P");
     124    else if (rnxStr == "C2") return iEntryV3("C2C");
     125    else if (rnxStr == "P2") return iEntryV3("C2P");
     126   
     127    const QString chars = "PWCZI ";
     128    for (int ii = 0; ii < chars.length(); ii++) {
     129      QString hlpStr = rnxStr + chars[ii];
     130      int ie = iEntryV3(hlpStr.trimmed());
     131      if (ie != -1 && (!nonEmpty || _measdata[ie] != 0.0)) {
     132        return ie;
     133      }
    131134    }
     135  }
     136
     137  else {
     138    return iEntryV3(rnxStr);
    132139  }
    133140
Note: See TracChangeset for help on using the changeset viewer.