Changeset 1268 in ntrip
- Timestamp:
- Dec 2, 2008, 10:31:46 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/RTCM/GPSDecoder.h ¶
r1239 r1268 136 136 } 137 137 138 QList<p_obs> _obsList; 139 QList<int> _typeList; // RTCMv3 message types 140 QList<int> _epochList; // Broadcast corrections 141 QStringList _antType; // RTCMv3 antenna descriptor 142 QList<double> _antList5; // RTCMv3 antenna XYZ 143 QList<double> _antList6; // RTCMv3 antenna XYZ & H 138 struct t_antInfo { 139 enum t_type { ARP, APC }; 140 141 t_antInfo() { 142 xx = yy = zz = height = 0.0; 143 type = ARP; 144 height_f = false; 145 message = 0; 146 }; 147 148 double xx; 149 double yy; 150 double zz; 151 t_type type; 152 double height; 153 bool height_f; 154 int message; 155 }; 156 157 QList<p_obs> _obsList; 158 QList<int> _typeList; // RTCM message types 159 QList<int> _epochList; // Broadcast corrections 160 QStringList _antType; // RTCMv3 antenna descriptor 161 QList<t_antInfo> _antList; // RTCM antenna XYZ 144 162 }; 145 163 -
TabularUnified trunk/BNC/RTCM/RTCM2Decoder.cpp ¶
r1218 r1268 124 124 } 125 125 } 126 127 // Store message number 128 _typeList.push_back(_PP.ID()); 126 129 127 130 if ( _PP.ID()==18 || _PP.ID()==19 ) { … … 178 181 else if ( _PP.ID() == 22 ) { 179 182 _msg22.extract(_PP); 183 } 184 185 // Output for RTCM scan 186 if ( _PP.ID() == 3 ) { 187 _antList.push_back(t_antInfo()); 188 189 this->getStaCrd(_antList.back().xx, _antList.back().yy, _antList.back().zz); 190 191 _antList.back().type = t_antInfo::APC; 192 _antList.back().message = _PP.ID(); 180 193 } 181 194 } -
TabularUnified trunk/BNC/RTCM3/RTCM3Decoder.cpp ¶
r1263 r1268 236 236 else if(rr == 1005) 237 237 { 238 _antList5.push_back(_Parser.antX); 239 _antList5.push_back(_Parser.antY); 240 _antList5.push_back(_Parser.antZ); 238 _antList.push_back(t_antInfo()); 239 _antList.back().type = t_antInfo::ARP; 240 _antList.back().xx = _Parser.antX * 1e-4; 241 _antList.back().yy = _Parser.antY * 1e-4; 242 _antList.back().zz = _Parser.antZ * 1e-4; 243 _antList.back().message = rr; 241 244 } 242 245 … … 245 248 else if(rr == 1006) 246 249 { 247 _antList6.push_back(_Parser.antX); 248 _antList6.push_back(_Parser.antY); 249 _antList6.push_back(_Parser.antZ); 250 _antList6.push_back(_Parser.antH); 250 _antList.push_back(t_antInfo()); 251 _antList.back().type = t_antInfo::ARP; 252 _antList.back().xx = _Parser.antX * 1e-4; 253 _antList.back().yy = _Parser.antY * 1e-4; 254 _antList.back().zz = _Parser.antZ * 1e-4; 255 _antList.back().height = _Parser.antH * 1e-4; 256 _antList.back().height_f = true; 257 _antList.back().message = rr; 251 258 } 252 259 -
TabularUnified trunk/BNC/bncgetthread.cpp ¶
r1239 r1268 755 755 bool dump = true; 756 756 757 // RTCMv2 XYZ 758 // ---------- 759 RTCM2Decoder* decoder2 = dynamic_cast<RTCM2Decoder*>(_decoder); 760 if ( decoder2 && !_rnx_set_position ) { 761 double stax, stay, staz; 762 double dL1[3], dL2[3]; 763 if ( decoder2->getStaCrd(stax, stay, staz, 764 dL1[0], dL1[1], dL1[2], 765 dL2[0], dL2[1], dL2[2]) == success ) { 766 767 if ( _checkMountPoint == _staID || _checkMountPoint == "ALL" ) { 768 QString ant1; 769 ant1 = QString("%1 ").arg(stax,0,'f',4); 770 emit(newMessage(_staID + ": ARP X " + ant1.toAscii() + "m" )); 771 ant1 = QString("%1 ").arg(stay,0,'f',4); 772 emit(newMessage(_staID + ": ARP Y " + ant1.toAscii() + "m" )); 773 ant1 = QString("%1 ").arg(staz,0,'f',4); 774 emit(newMessage(_staID + ": ARP Z " + ant1.toAscii() + "m" )); 775 ant1 = QString("%1 ").arg(dL1[0],0,'f',4); 776 emit(newMessage(_staID + ": L1 APC DX " + ant1.toAscii() + "m" )); 777 ant1 = QString("%1 ").arg(dL1[1],0,'f',4); 778 emit(newMessage(_staID + ": L1 APC DY " + ant1.toAscii() + "m" )); 779 ant1 = QString("%1 ").arg(dL1[2],0,'f',4); 780 emit(newMessage(_staID + ": L1 APC DZ " + ant1.toAscii() + "m" )); 781 ant1 = QString("%1 ").arg(dL2[0],0,'f',4); 782 emit(newMessage(_staID + ": L2 APC DX " + ant1.toAscii() + "m" )); 783 ant1 = QString("%1 ").arg(dL2[1],0,'f',4); 784 emit(newMessage(_staID + ": L2 APC DY " + ant1.toAscii() + "m" )); 785 ant1 = QString("%1 ").arg(dL2[2],0,'f',4); 786 emit(newMessage(_staID + ": L2 APC DZ " + ant1.toAscii() + "m" )); 787 } 788 _rnx_set_position = true; 789 } 790 } 757 //// // RTCMv2 XYZ 758 //// // ---------- 759 //// RTCM2Decoder* decoder2 = dynamic_cast<RTCM2Decoder*>(_decoder); 760 //// if ( decoder2 && !_rnx_set_position ) { 761 //// double stax, stay, staz; 762 //// double dL1[3], dL2[3]; 763 //// if ( decoder2->getStaCrd(stax, stay, staz, 764 //// dL1[0], dL1[1], dL1[2], 765 //// dL2[0], dL2[1], dL2[2]) == success ) { 766 //// 767 //// if ( _checkMountPoint == _staID || _checkMountPoint == "ALL" ) { 768 //// QString ant1; 769 //// ant1 = QString("%1 ").arg(stax,0,'f',4); 770 //// emit(newMessage(_staID + ": ARP X " + ant1.toAscii() + "m" )); 771 //// ant1 = QString("%1 ").arg(stay,0,'f',4); 772 //// emit(newMessage(_staID + ": ARP Y " + ant1.toAscii() + "m" )); 773 //// ant1 = QString("%1 ").arg(staz,0,'f',4); 774 //// emit(newMessage(_staID + ": ARP Z " + ant1.toAscii() + "m" )); 775 //// ant1 = QString("%1 ").arg(dL1[0],0,'f',4); 776 //// emit(newMessage(_staID + ": L1 APC DX " + ant1.toAscii() + "m" )); 777 //// ant1 = QString("%1 ").arg(dL1[1],0,'f',4); 778 //// emit(newMessage(_staID + ": L1 APC DY " + ant1.toAscii() + "m" )); 779 //// ant1 = QString("%1 ").arg(dL1[2],0,'f',4); 780 //// emit(newMessage(_staID + ": L1 APC DZ " + ant1.toAscii() + "m" )); 781 //// ant1 = QString("%1 ").arg(dL2[0],0,'f',4); 782 //// emit(newMessage(_staID + ": L2 APC DX " + ant1.toAscii() + "m" )); 783 //// ant1 = QString("%1 ").arg(dL2[1],0,'f',4); 784 //// emit(newMessage(_staID + ": L2 APC DY " + ant1.toAscii() + "m" )); 785 //// ant1 = QString("%1 ").arg(dL2[2],0,'f',4); 786 //// emit(newMessage(_staID + ": L2 APC DZ " + ant1.toAscii() + "m" )); 787 //// } 788 //// _rnx_set_position = true; 789 //// } 790 //// } 791 791 792 792 if ( dump ) { … … 830 830 } 831 831 832 // RTCMv3antenna XYZ832 // antenna XYZ 833 833 // ------------------ 834 if (0<_decoder->_antList5.size()) { 835 QString ant1,ant2,ant3; 836 for (int ii=0;ii<_decoder->_antList5.size();ii+=3) { 837 ant1 = QString("%1 ").arg(_decoder->_antList5[ii+0]*0.0001,0,'f',4); 838 ant2 = QString("%1 ").arg(_decoder->_antList5[ii+1]*0.0001,0,'f',4); 839 ant3 = QString("%1 ").arg(_decoder->_antList5[ii+2]*0.0001,0,'f',4); 840 emit(newMessage(_staID + ": ARP (ITRF) X " + ant1.toAscii() + "m" )); 841 emit(newMessage(_staID + ": ARP (ITRF) Y " + ant2.toAscii() + "m")); 842 emit(newMessage(_staID + ": ARP (ITRF) Z " + ant3.toAscii() + "m")); 843 } 844 } 845 846 // RTCMv3 antenna XYZ-H 847 // -------------------- 848 if (0<_decoder->_antList6.size()) { 849 QString ant1,ant2,ant3,ant4; 850 for (int ii=0;ii<_decoder->_antList6.size();ii+=4) { 851 ant1 = QString("%1 ").arg(_decoder->_antList6[ii+0]*0.0001,0,'f',4); 852 ant2 = QString("%1 ").arg(_decoder->_antList6[ii+1]*0.0001,0,'f',4); 853 ant3 = QString("%1 ").arg(_decoder->_antList6[ii+2]*0.0001,0,'f',4); 854 ant4 = QString("%1 ").arg(_decoder->_antList6[ii+3]*0.0001,0,'f',4); 855 emit(newMessage(_staID + ": ARP (ITRF) X " + ant1.toAscii() + "m" )); 856 emit(newMessage(_staID + ": ARP (ITRF) Y " + ant2.toAscii() + "m")); 857 emit(newMessage(_staID + ": ARP (ITRF) Z " + ant3.toAscii() + "m")); 858 emit(newMessage(_staID + ": Antenna height above ARP " + ant4.toAscii() + "m")); 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 } 859 851 } 860 852 } … … 862 854 _decoder->_typeList.clear(); 863 855 _decoder->_antType.clear(); 864 _decoder->_antList5.clear(); 865 _decoder->_antList6.clear(); 856 _decoder->_antList.clear(); 866 857 } 867 858
Note:
See TracChangeset
for help on using the changeset viewer.