Changeset 2370 in ntrip
- Timestamp:
- Mar 12, 2010, 10:13:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r2287 r2370 728 728 emit newMessage(_log, false); 729 729 730 // NEU Output 731 // ---------- 732 bncSettings settings; 733 if (settings.value("pppOrigin").toString() != "No plot") { 734 double xyzRef[3]; 735 double ellRef[3]; 736 double _xyz[3]; 737 double _neu[3]; 738 xyzRef[0] = settings.value("pppRefCrdX").toDouble(); 739 xyzRef[1] = settings.value("pppRefCrdY").toDouble(); 740 xyzRef[2] = settings.value("pppRefCrdZ").toDouble(); 741 _xyz[0] = x() - xyzRef[0]; 742 _xyz[1] = y() - xyzRef[1]; 743 _xyz[2] = z() - xyzRef[2]; 744 xyz2ell(xyzRef, ellRef); 745 xyz2neu(ellRef, _xyz, _neu); 746 ostringstream strC; 747 strC.setf(ios::fixed); 748 strC << _staID.data() << ": NEU " 749 << epoData->tt.timestr(1) << " " << epoData->sizeAll() << " " 750 << setw(8) << setprecision(3) << _neu[0] << " " 751 << setw(8) << setprecision(3) << _neu[1] << " " 752 << setw(8) << setprecision(3) << _neu[2]; 753 emit newMessage(QByteArray(strC.str().c_str()), true); 754 } 755 730 756 // NMEA Output 731 757 // -----------
Note:
See TracChangeset
for help on using the changeset viewer.