Changeset 5483 in ntrip for trunk/GnssCenter/monitor/thriftclient.cpp
- Timestamp:
- Sep 18, 2013, 2:39:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/monitor/thriftclient.cpp
r5479 r5483 80 80 void t_thriftHandler:: 81 81 handleSatelliteXYZ(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 } 89 100 } 90 101
Note:
See TracChangeset
for help on using the changeset viewer.