Changeset 6580 in ntrip


Ignore:
Timestamp:
Feb 4, 2015, 5:13:03 PM (9 years ago)
Author:
stuerze
Message:

consider RTCM2/RINEX2 in scanRTCM()

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncgetthread.cpp

    r6579 r6580  
    665665            QString rnxStr('C');
    666666            rnxStr.append(obs._obs[iFrq]->_rnxType2ch.c_str());
     667            if (_format.indexOf("RTCM_2") != -1 ||
     668                _format.indexOf("RTCM2") != -1 ||
     669                _format.indexOf("RTCM 2") != -1 ) {
     670              rnxStr = t_rnxObsFile::type3to2(obs._prn.system(), rnxStr);
     671            }
    667672            if (rnxTypes.indexOf(rnxStr) == -1) {
    668673              rnxTypes.push_back(rnxStr);
     
    673678            QString rnxStr('L');
    674679            rnxStr.append(obs._obs[iFrq]->_rnxType2ch.c_str());
     680            if (_format.indexOf("RTCM_2") != -1 ||
     681                _format.indexOf("RTCM2") != -1 ||
     682                _format.indexOf("RTCM 2") != -1 ) {
     683              rnxStr = t_rnxObsFile::type3to2(obs._prn.system(), rnxStr);
     684            }
    675685            if (rnxTypes.indexOf(rnxStr) == -1) {
    676686              rnxTypes.push_back(rnxStr);
     
    681691            QString rnxStr('D');
    682692            rnxStr.append(obs._obs[iFrq]->_rnxType2ch.c_str());
     693            if (_format.indexOf("RTCM_2") != -1 ||
     694                _format.indexOf("RTCM2") != -1 ||
     695                _format.indexOf("RTCM 2") != -1 ) {
     696              rnxStr = t_rnxObsFile::type3to2(obs._prn.system(), rnxStr);
     697            }
    683698            if (rnxTypes.indexOf(rnxStr) == -1) {
    684699              rnxTypes.push_back(rnxStr);
     
    689704            QString rnxStr('S');
    690705            rnxStr.append(obs._obs[iFrq]->_rnxType2ch.c_str());
     706            if (_format.indexOf("RTCM_2") != -1 ||
     707                _format.indexOf("RTCM2") != -1 ||
     708                _format.indexOf("RTCM 2") != -1 ) {
     709              rnxStr = t_rnxObsFile::type3to2(obs._prn.system(), rnxStr);
     710            }
    691711            if (rnxTypes.indexOf(rnxStr) == -1) {
    692712              rnxTypes.push_back(rnxStr);
  • trunk/BNC/src/bncgetthread.h

    r6139 r6580  
    3636#include "bncrawfile.h"
    3737#include "satObs.h"
     38#include "rinex/rnxobsfile.h"
    3839
    3940class GPSDecoder;
Note: See TracChangeset for help on using the changeset viewer.