Changeset 5438 in ntrip
- Timestamp:
- Sep 12, 2013, 7:03:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/map_stations/map_stations.cpp
r5436 r5438 29 29 30 30 #include "map_stations.h" 31 #include "utils.h" 31 32 #include "worldplot.h" 32 33 #include "thriftclient.h" … … 128 129 for (unsigned ii = 0; ii < _results->size(); ii++) { 129 130 const t_thriftResult* result = _results->at(ii); 130 t_worldPlot::t_point* point = new t_worldPlot::t_point(result->_name.c_str(), 131 50.0+ii, 15.0+2*ii); 132 // cout << result->_name << ' ' 133 // << result->_nGPS << ' ' << result->_nGLO << ' ' 134 // << result->_x << ' ' << result->_y << ' ' << result->_z << endl; 135 points.append(point); 131 132 double xyz[3]; 133 xyz[0] = result->_x; 134 xyz[1] = result->_y; 135 xyz[2] = result->_z; 136 137 double ell[3]; 138 139 if (xyz2ell(xyz, ell) == success) { 140 double latDeg = ell[0] * 180.0 / M_PI; 141 double lonDeg = ell[1] * 180.0 / M_PI; 142 t_worldPlot::t_point* point = new t_worldPlot::t_point(result->_name.c_str(), 143 latDeg, lonDeg); 144 points.append(point); 145 } 136 146 } 137 147 _plot->slotNewPoints(points);
Note:
See TracChangeset
for help on using the changeset viewer.