- Timestamp:
- Dec 3, 2008, 10:11:17 AM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r1268 r1271 660 660 delete [] data; 661 661 662 663 // RTCM scan output 664 // ---------------- 665 if ( _checkMountPoint == _staID || _checkMountPoint == "ALL" ) { 666 667 // RTCMv3 message types 668 // -------------------- 669 if (0<_decoder->_typeList.size()) { 670 QString type; 671 for (int ii=0;ii<_decoder->_typeList.size();ii++) { 672 type = QString("%1 ").arg(_decoder->_typeList[ii]); 673 emit(newMessage(_staID + ": Received message type " + type.toAscii() )); 674 } 675 } 676 677 // RTCMv3 antenna descriptor 678 // ------------------------- 679 if (0<_decoder->_antType.size()) { 680 QString ant1; 681 for (int ii=0;ii<_decoder->_antType.size();ii++) { 682 ant1 = QString("%1 ").arg(_decoder->_antType[ii]); 683 emit(newMessage(_staID + ": Antenna descriptor " + ant1.toAscii() )); 684 } 685 } 686 687 // antenna XYZ 688 // ------------------ 689 if (0<_decoder->_antList.size()) { 690 for (int ii=0;ii<_decoder->_antList.size();++ii) { 691 QByteArray ant1,ant2,ant3, antT; 692 ant1 = QString("%1 ").arg(_decoder->_antList[ii].xx,0,'f',4).toAscii(); 693 ant2 = QString("%1 ").arg(_decoder->_antList[ii].yy,0,'f',4).toAscii(); 694 ant3 = QString("%1 ").arg(_decoder->_antList[ii].zz,0,'f',4).toAscii(); 695 switch (_decoder->_antList[ii].type) { 696 case GPSDecoder::t_antInfo::ARP: antT = "ARP"; break; 697 case GPSDecoder::t_antInfo::APC: antT = "APC"; break; 698 } 699 emit(newMessage(_staID + ": " + antT + " (ITRF) X " + ant1 + "m")); 700 emit(newMessage(_staID + ": " + antT + " (ITRF) Y " + ant2 + "m")); 701 emit(newMessage(_staID + ": " + antT + " (ITRF) Z " + ant3 + "m")); 702 if (_decoder->_antList[ii].height_f) { 703 QByteArray ant4 = QString("%1 ").arg(_decoder->_antList[ii].height,0,'f',4).toAscii(); 704 emit(newMessage(_staID + ": Antenna height above marker " + ant4 + "m")); 705 } 706 emit(newAntCrd(_staID, 707 _decoder->_antList[ii].zz, _decoder->_antList[ii].zz, _decoder->_antList[ii].zz, 708 antT)); 709 cout << "new crd " << _staID.data() << fixed << setprecision(3) 710 << " " << setw(14) << _decoder->_antList[ii].xx 711 << " " << setw(14) << _decoder->_antList[ii].yy 712 << " " << setw(14) << _decoder->_antList[ii].zz 713 << endl; 714 } 715 } 716 } 717 if ( _checkMountPoint == "ANTCRD_ONLY" && _decoder->_antList.size() ) { 718 for (int ii=0;ii<_decoder->_antList.size();++ii) { 719 QByteArray antT; 720 switch (_decoder->_antList[ii].type) { 721 case GPSDecoder::t_antInfo::ARP: antT = "ARP"; break; 722 case GPSDecoder::t_antInfo::APC: antT = "APC"; break; 723 } 724 emit(newAntCrd(_staID, 725 _decoder->_antList[ii].zz, _decoder->_antList[ii].zz, _decoder->_antList[ii].zz, 726 antT)); 727 } 728 } 729 730 _decoder->_typeList.clear(); 731 _decoder->_antType.clear(); 732 _decoder->_antList.clear(); 733 734 // Loop over all observations (observations output) 735 // ------------------------------------------------ 662 736 QListIterator<p_obs> it(_decoder->_obsList); 663 737 while (it.hasNext()) { … … 808 882 _decoder->_obsList.clear(); 809 883 810 if ( _checkMountPoint == _staID || _checkMountPoint == "ALL" ) {811 812 // RTCMv3 message types813 // --------------------814 if (0<_decoder->_typeList.size()) {815 QString type;816 for (int ii=0;ii<_decoder->_typeList.size();ii++) {817 type = QString("%1 ").arg(_decoder->_typeList[ii]);818 emit(newMessage(_staID + ": Received message type " + type.toAscii() ));819 }820 }821 822 // RTCMv3 antenna descriptor823 // -------------------------824 if (0<_decoder->_antType.size()) {825 QString ant1;826 for (int ii=0;ii<_decoder->_antType.size();ii++) {827 ant1 = QString("%1 ").arg(_decoder->_antType[ii]);828 emit(newMessage(_staID + ": Antenna descriptor " + ant1.toAscii() ));829 }830 }831 832 // antenna XYZ833 // ------------------834 if (0<_decoder->_antList.size()) {835 for (int ii=0;ii<_decoder->_antList.size();++ii) {836 QByteArray ant1,ant2,ant3, antT;837 ant1 = QString("%1 ").arg(_decoder->_antList[ii].xx,0,'f',4).toAscii();838 ant2 = QString("%1 ").arg(_decoder->_antList[ii].yy,0,'f',4).toAscii();839 ant3 = QString("%1 ").arg(_decoder->_antList[ii].zz,0,'f',4).toAscii();840 switch (_decoder->_antList[ii].type) {841 case GPSDecoder::t_antInfo::ARP: antT = "ARP"; break;842 case GPSDecoder::t_antInfo::APC: antT = "APC"; break;843 }844 emit(newMessage(_staID + ": " + antT + " (ITRF) X " + ant1 + "m"));845 emit(newMessage(_staID + ": " + antT + " (ITRF) Y " + ant2 + "m"));846 emit(newMessage(_staID + ": " + antT + " (ITRF) Z " + ant3 + "m"));847 if (_decoder->_antList[ii].height_f) {848 QByteArray ant4 = QString("%1 ").arg(_decoder->_antList[ii].height,0,'f',4).toAscii();849 emit(newMessage(_staID + ": Antenna height above marker " + ant4 + "m"));850 }851 }852 }853 }854 _decoder->_typeList.clear();855 _decoder->_antType.clear();856 _decoder->_antList.clear();857 884 } 858 885 -
trunk/BNC/bncgetthread.h
r1163 r1271 61 61 void newBytes(QByteArray staID, double nbyte); 62 62 void newObs(QByteArray staID, bool firstObs, p_obs obs); 63 void newAntCrd(QByteArray staID, double xx, double yy, double zz, QByteArray antType); 63 64 void error(QByteArray staID); 64 65 void newMessage(QByteArray msg);
Note:
See TracChangeset
for help on using the changeset viewer.