Changeset 5488 in ntrip for trunk/GnssCenter
- Timestamp:
- Sep 18, 2013, 3:12:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/monitor/monitor.cpp
r5487 r5488 269 269 void t_monitor::plotSatellites() { 270 270 if (_satellites) { 271 QList<t_worldPlot::t_point*> points; 271 272 for (unsigned ii = 0; ii < _satellites->size(); ii++) { 272 273 const t_thriftSatellite* sat = _satellites->at(ii); 273 qDebug() << sat->_prn.c_str(); 274 } 275 } 276 } 274 275 double xyz[3]; 276 xyz[0] = sat->_x; 277 xyz[1] = sat->_y; 278 xyz[2] = sat->_z; 279 280 double ell[3]; 281 282 if (t_utils::xyz2ell(xyz, ell) == t_CST::success) { 283 double latDeg = ell[0] * 180.0 / M_PI; 284 double lonDeg = ell[1] * 180.0 / M_PI; 285 QString str = sat->_prn.c_str(); 286 t_worldPlot::t_point* point = new t_worldPlot::t_point(str, latDeg, lonDeg); 287 points.append(point); 288 } 289 } 290 _plotStations->slotNewPoints(points); 291 292 QListIterator<t_worldPlot::t_point*> it(points); 293 while (it.hasNext()) { 294 delete it.next(); 295 } 296 } 297 }
Note:
See TracChangeset
for help on using the changeset viewer.