Changeset 5483 in ntrip for trunk/GnssCenter


Ignore:
Timestamp:
Sep 18, 2013, 2:39:58 PM (9 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/monitor
Files:
2 edited

Legend:

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

    r5479 r5483  
    8080void t_thriftHandler::
    8181handleSatelliteXYZ(const vector<SatelliteXYZ>& svXYZList) {
    82 //  for (unsigned ii = 0; ii < svXYZList.size(); ii++) {
    83 //    const SatelliteXYZ& sat = svXYZList[ii];
    84 //    cout << unsigned(sat.ID) << ' '
    85 //         << setprecision(3) << sat.xyz.x << ' '
    86 //         << setprecision(3) << sat.xyz.y << ' '
    87 //         << setprecision(3) << sat.xyz.z << endl;
    88 //  }
     82  vector<t_thriftSatellite*>* satellites = new vector<t_thriftSatellite*>;
     83  for (unsigned ii = 0; ii < svXYZList.size(); ii++) {
     84    const SatelliteXYZ& sat = svXYZList[ii];
     85    t_thriftSatellite* satellite = new t_thriftSatellite;
     86    satellite->_x = sat.xyz.x;
     87    satellite->_y = sat.xyz.y;
     88    satellite->_z = sat.xyz.z;
     89    char ch;
     90    switch(sat.constellation) {
     91      case (ConstellationType::GPS):     ch = 'G'; break;
     92      case (ConstellationType::GLONASS): ch = 'R'; break;
     93      case (ConstellationType::SBAS):    ch = 'S'; break;
     94      case (ConstellationType::GALILEO): ch = 'E'; break;
     95      case (ConstellationType::QZSS):    ch = 'J'; break;
     96      case (ConstellationType::COMPASS): ch = 'C'; break;
     97    }
     98    cout << unsigned(sat.ID) << endl;
     99  }
    89100}
    90101
  • trunk/GnssCenter/monitor/thriftclient.h

    r5479 r5483  
    3535  int         _nGPS; 
    3636  int         _nGLO;
     37  double      _x;
     38  double      _y;
     39  double      _z;
     40};
     41
     42class t_thriftSatellite {
     43 public:
     44  std::string _prn;
    3745  double      _x;
    3846  double      _y;
Note: See TracChangeset for help on using the changeset viewer.