Changeset 7048 in ntrip


Ignore:
Timestamp:
Jul 14, 2015, 4:08:46 PM (9 years ago)
Author:
stuerze
Message:

a method for code LC determination is added

Location:
trunk/BNC/src
Files:
2 edited

Legend:

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

    r6965 r7048  
    122122  return answ;
    123123}
     124
     125//
     126/////////////////////////////////////////////////////////////////////////////
     127vector<t_lc::type> t_pppOptions::codeLCs(char system) const {
     128
     129  const vector<t_lc::type>& allLCs = LCs(system);
     130  vector<t_lc::type>        codeLCs;
     131  for (unsigned ii = 0; ii < allLCs.size(); ii++) {
     132    if (t_lc::includesCode(allLCs[ii])) {
     133      codeLCs.push_back(allLCs[ii]);
     134    }
     135  }
     136
     137  vector<t_lc::type> answ;
     138  if      (codeLCs.size() == 1) {
     139    answ.push_back(codeLCs[0]);
     140  }
     141  else if (codeLCs.size() >  1) {
     142    answ.push_back(t_lc::c1);
     143    answ.push_back(t_lc::c2);
     144  }
     145
     146  return answ;
     147}
  • trunk/BNC/src/pppOptions.h

    r6965 r7048  
    1717  const std::vector<t_lc::type>& LCs(char system) const;
    1818  std::vector<t_lc::type>        ambLCs(char system) const;
     19  std::vector<t_lc::type>        codeLCs(char system) const;
    1920  bool useSystem(char system) const {return LCs(system).size() > 0;}
    2021  bool useOrbClkCorr() const;
Note: See TracChangeset for help on using the changeset viewer.