Changeset 5499 in ntrip for trunk/GnssCenter


Ignore:
Timestamp:
Sep 23, 2013, 10:11:50 AM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/monitor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/monitor/monitor.cpp

    r5497 r5499  
    303303          for (unsigned jj = 0; jj < _results->size(); jj++) {
    304304            const t_thriftResult* result = _results->at(jj);
    305             for (unsigned is = 0; is < result->_prns.size(); is++) {
    306               if (result->_prns[is] == sat->_prn) {
    307                 numSta += 1;
    308               }
     305            if (result->_prns.find(sat->_prn) != result->_prns.end()) {
     306              numSta += 1;
    309307            }
    310308          }
  • trunk/GnssCenter/monitor/thriftclient.cpp

    r5498 r5499  
    142142    }
    143143
    144     for (unsigned is = 0; is < staRes.svPosList.size(); is++) {
    145       const SatelliteEleAzi& sat = staRes.svPosList[is];
    146       string prn = id2prn(sat.constellation, sat.ID);
    147       const double eleMask = 10.0;
    148       if (sat.elevation > eleMask) {
    149         res->_prns.push_back(prn);
     144    for (unsigned ic = 0; ic < staRes.residList.size(); ic++) {
     145      const ResidualInfo& info = staRes.residList[ic];
     146      for (unsigned is = 0; is < info.svResid.size(); is++) {
     147        const SvResidualInfo& sat = info.svResid[is];
     148        string prn = id2prn(sat.constellation, sat.ID);
     149        res->_prns.insert(prn);
    150150      }
    151151    }
  • trunk/GnssCenter/monitor/thriftclient.h

    r5496 r5499  
    44#include <string>
    55#include <map>
     6#include <set>
    67#include <QString>
    78#include <QThread>
     
    3233  }
    3334  ~t_thriftResult() {}
    34   std::string              _name;
    35   int                      _nGPS; 
    36   int                      _nGLO;
    37   double                   _x;
    38   double                   _y;
    39   double                   _z;
    40   std::vector<std::string> _prns;
     35  std::string           _name;
     36  int                   _nGPS; 
     37  int                   _nGLO;
     38  double                _x;
     39  double                _y;
     40  double                _z;
     41  std::set<std::string> _prns;
    4142};
    4243
Note: See TracChangeset for help on using the changeset viewer.