Changeset 4404 in ntrip for trunk


Ignore:
Timestamp:
Jul 8, 2012, 12:10:48 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/RTCM
Files:
2 edited

Legend:

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

    r4403 r4404  
    114114//////////////////////////////////////////////////////////////////////////////
    115115int t_obs::iEntry(const QString& rnxStr, float rnxVers) const {
     116  if (rnxVers >= 3.0) {
     117    return iEntryV3(rnxStr);
     118  }
     119
     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 = "CPWZI ";
     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) return ie;
     130  }
     131
     132  return -1;
     133}
     134
     135//
     136//////////////////////////////////////////////////////////////////////////////
     137int t_obs::iEntryV3(const QString& rnxStr) const {
    116138
    117139  int retVal = -1;
  • trunk/BNC/src/RTCM/GPSDecoder.h

    r4403 r4404  
    8282 private:
    8383  int iEntry(const QString& rnxStr, float rnxVer) const;
     84  int iEntryV3(const QString& rnxStr) const;
    8485};
    8586
Note: See TracChangeset for help on using the changeset viewer.