Changeset 6560 in ntrip for trunk


Ignore:
Timestamp:
Jan 22, 2015, 5:14:45 PM (9 years ago)
Author:
stuerze
Message:

minor changes regarding qc

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncconst.h

    r6405 r6560  
    7171    return std::string();
    7272  }
     73  static enum type toInt(std::string s) {
     74    if      (s == "G1") return G1;
     75    else if (s == "G2") return G2;
     76    else if (s == "G5") return G5;
     77    else if (s == "R1") return R1;
     78    else if (s == "R2") return R2;
     79    else if (s == "E1") return E1;
     80    else if (s == "E5") return E5;
     81    else if (s == "E6") return E6;
     82    else if (s == "E7") return E7;
     83    else if (s == "E8") return E8;
     84    else if (s == "J1") return J1;
     85    else if (s == "J2") return J2;
     86    else if (s == "J5") return J5;
     87    else if (s == "J6") return J6;
     88    else if (s == "S1") return S1;
     89    else if (s == "S5") return S5;
     90    else if (s == "C1") return C1;
     91    else if (s == "C7") return C7;
     92    else if (s == "C6") return C6;
     93    return type();
     94  }
    7395};
    7496
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r6551 r6560  
    360360      t_frequency::type fA = t_frequency::dummy;
    361361      t_frequency::type fB = t_frequency::dummy;
    362       if      (satObs._prn.system() == 'G') {
    363         if      (frqObs->_rnxType2ch[0] == '1') {
    364           fA = t_frequency::G1;
    365           fB = t_frequency::G2;
    366         }
    367         else if (frqObs->_rnxType2ch[0] == '2') {
    368           fA = t_frequency::G2;
    369           fB = t_frequency::G1;
    370         }
    371       }
    372       else if (satObs._prn.system() == 'R') {
    373         if      (frqObs->_rnxType2ch[0] == '1') {
    374           fA = t_frequency::R1;
    375           fB = t_frequency::R2;
    376         }
    377         else if (frqObs->_rnxType2ch[0] == '2') {
    378           fA = t_frequency::R2;
    379           fB = t_frequency::R1;
    380         }
    381       }
    382       else if (satObs._prn.system() == 'E') {
    383         if      (frqObs->_rnxType2ch[0] == '1') {
    384           fA = t_frequency::E1;
    385           fB = t_frequency::E5;
    386         }
    387         else if (frqObs->_rnxType2ch[0] == '5') {
    388           fA = t_frequency::E5;
    389           fB = t_frequency::E1;
    390         }
    391       }
    392       else if (satObs._prn.system() == 'J') {
    393         if      (frqObs->_rnxType2ch[0] == '1') {
    394           fA = t_frequency::J1;
    395           fB = t_frequency::J2;
    396         }
    397         else if (frqObs->_rnxType2ch[0] == '2') {
    398           fA = t_frequency::J2;
    399           fB = t_frequency::J1;
    400         }
    401       }
    402       else if (satObs._prn.system() == 'S') {
    403         if      (frqObs->_rnxType2ch[0] == '1') {
    404           fA = t_frequency::S1;
    405           fB = t_frequency::S5;
    406         }
    407         else if (frqObs->_rnxType2ch[0] == '5') {
    408           fA = t_frequency::S5;
    409           fB = t_frequency::S1;
    410         }
    411       }
    412       else if (satObs._prn.system() == 'C') {
    413         if      (frqObs->_rnxType2ch[0] == '1') {
    414           fA = t_frequency::C1;
    415           fB = t_frequency::C7;
    416         }
    417         else if (frqObs->_rnxType2ch[0] == '7') {
    418           fA = t_frequency::C7;
    419           fB = t_frequency::C1;
     362      char sys             = satObs._prn.system();
     363      std::string frqType1, frqType2;
     364      if (_signalTypes.find(sys) != _signalTypes.end()) {
     365        frqType1.push_back(sys);
     366        frqType1.push_back(_signalTypes[sys][0][0].toAscii());
     367        frqType2.push_back(sys);
     368        frqType2.push_back(_signalTypes[sys][1][0].toAscii());
     369        if      (frqObs->_rnxType2ch[0] == frqType1[1]) {
     370          fA = t_frequency::toInt(frqType1);
     371          fB = t_frequency::toInt(frqType2);
     372        }
     373        else if (frqObs->_rnxType2ch[0] == frqType2[1]) {
     374          fA = t_frequency::toInt(frqType2);
     375          fB = t_frequency::toInt(frqType1);
    420376        }
    421377      }
Note: See TracChangeset for help on using the changeset viewer.