Changeset 5797 in ntrip


Ignore:
Timestamp:
Aug 4, 2014, 5:21:48 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/options.cpp

    r5790 r5797  
    9797//////////////////////////////////////////////////////////////////////////////
    9898vector<t_lc::type> t_options::LCs() const {
    99   vector<t_lc::type> allLCs;
    100   for (unsigned ii = 0; ii < _lcGPS.size(); ii++) {
    101     allLCs.push_back(_lcGPS[ii]);
     99
     100  vector<t_lc::type> allLCs = _lcGPS;
     101
     102  for (unsigned ii = 0; ii < _lcGLONASS.size(); ii++) {
     103    bool found = false;
     104    for (unsigned iAll = 0; iAll < allLCs.size(); iAll++) {
     105      if (allLCs[iAll] == _lcGLONASS[ii]) {
     106        found = true;
     107        break;
     108      }
     109    }
     110    if (!found) {
     111      allLCs.push_back(_lcGLONASS[ii]);
     112    }
    102113  }
    103   for (unsigned ii = 0; ii < _lcGLONASS.size(); ii++) {
    104     allLCs.push_back(_lcGLONASS[ii]);
     114
     115  for (unsigned ii = 0; ii < _lcGalileo.size(); ii++) {
     116    bool found = false;
     117    for (unsigned iAll = 0; iAll < allLCs.size(); iAll++) {
     118      if (allLCs[iAll] == _lcGalileo[ii]) {
     119        found = true;
     120        break;
     121      }
     122    }
     123    if (!found) {
     124      allLCs.push_back(_lcGalileo[ii]);
     125    }
    105126  }
    106   for (unsigned ii = 0; ii < _lcGalileo.size(); ii++) {
    107     allLCs.push_back(_lcGalileo[ii]);
    108   }
     127
    109128  return allLCs; 
    110129}
Note: See TracChangeset for help on using the changeset viewer.