Changeset 5355 in ntrip for trunk/BNC/src/RTCM/GPSDecoder.cpp


Ignore:
Timestamp:
Aug 26, 2013, 10:07:31 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4774 r5355  
    4747extern "C" {
    4848#include "rtcm3torinex.h"
    49 #include "rtcm3torinexsupport.h"
    5049}
    5150
     
    127126  }
    128127
    129   return rrinex3codetoentry(rnxStr.toAscii().data());
     128  for (int ie = 0; ie <  GNSSENTRY_NUMBER; ie++) {
     129    if (rnxStr.mid(1) == QString(_codetype[ie])) {
     130      if      (rnxStr[0] == 'C') {
     131        return ie + GNSSENTRY_CODE;
     132      }
     133      else if (rnxStr[0] == 'L') {
     134        return ie + GNSSENTRY_PHASE;
     135      }
     136      else if (rnxStr[0] == 'D') {
     137        return ie + GNSSENTRY_DOPPLER;
     138      }
     139      else if (rnxStr[0] == 'S') {
     140        return ie + GNSSENTRY_SNR;
     141      }
     142    }
     143  }
     144  return -1;
     145  ////  return rrinex3codetoentry(rnxStr.toAscii().data());
    130146}
    131147
Note: See TracChangeset for help on using the changeset viewer.