Changeset 1184 in ntrip for trunk/BNC/bncgetthread.cpp


Ignore:
Timestamp:
Nov 10, 2008, 7:01:41 PM (15 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1168 r1184  
    737737            bool dump = true;
    738738
    739             RTCM2Decoder* decoder2 = dynamic_cast<RTCM2Decoder*>(_decoder);
    740             if ( decoder2 && !_rnx_set_position ) {
     739     RTCM2Decoder* decoder2 = dynamic_cast<RTCM2Decoder*>(_decoder);
     740     if ( decoder2 && !_rnx_set_position ) {
    741741              double stax, stay, staz;
    742742              double dL1[3], dL2[3];
     
    796796        if ( _checkMountPoint == _staID || _checkMountPoint == "ALL" ) {
    797797
    798           // RTCM message types
    799           // ------------------
     798          // RTCMv3 message types
     799          // --------------------
    800800          if (0<_decoder->_typeList.size()) {
    801801            QString type;
     
    807807          _decoder->_typeList.clear();
    808808
    809           // Antenna XYZ & H
    810           // ---------------
    811           if (0<_decoder->_antList.size()) {
     809          // RTCMv3 antenna descriptor
     810          // -------------------------
     811          if (0<_decoder->_antType.size()) {
     812            QString ant1;
     813            for (int ii=0;ii<_decoder->_antType.size();ii++) {
     814              ant1 =  QString("%1 ").arg(_decoder->_antType[ii]);
     815              emit(newMessage(_staID + ": Antenna descriptor " + ant1.toAscii() ));
     816            }
     817          }
     818          _decoder->_antType.clear();
     819
     820          // RTCMv3 antenna XYZ
     821          // ------------------
     822          if (0<_decoder->_antList5.size()) {
     823            QString ant1,ant2,ant3;
     824            for (int ii=0;ii<_decoder->_antList5.size();ii+=3) {
     825              ant1 =  QString("%1 ").arg(_decoder->_antList5[ii+0]*0.0001,0,'f',4);
     826              ant2 =  QString("%1 ").arg(_decoder->_antList5[ii+1]*0.0001,0,'f',4);
     827              ant3 =  QString("%1 ").arg(_decoder->_antList5[ii+2]*0.0001,0,'f',4);
     828              emit(newMessage(_staID + ": ARP (ITRF) X " + ant1.toAscii() + "m" ));
     829              emit(newMessage(_staID + ": ARP (ITRF) Y " + ant2.toAscii() + "m"));
     830              emit(newMessage(_staID + ": ARP (ITRF) Z " + ant3.toAscii() + "m"));
     831            }
     832          }
     833          _decoder->_antList5.clear();
     834
     835          // RTCMv3 antenna XYZ-H
     836          // --------------------
     837          if (0<_decoder->_antList6.size()) {
    812838            QString ant1,ant2,ant3,ant4;
    813             for (int ii=0;ii<_decoder->_antList.size();ii+=4) {
    814               ant1 =  QString("%1 ").arg(_decoder->_antList[ii+0]*0.0001,0,'f',4);
    815               ant2 =  QString("%1 ").arg(_decoder->_antList[ii+1]*0.0001,0,'f',4);
    816               ant3 =  QString("%1 ").arg(_decoder->_antList[ii+2]*0.0001,0,'f',4);
    817               ant4 =  QString("%1 ").arg(_decoder->_antList[ii+3]*0.0001,0,'f',4);
     839            for (int ii=0;ii<_decoder->_antList6.size();ii+=4) {
     840              ant1 =  QString("%1 ").arg(_decoder->_antList6[ii+0]*0.0001,0,'f',4);
     841              ant2 =  QString("%1 ").arg(_decoder->_antList6[ii+1]*0.0001,0,'f',4);
     842              ant3 =  QString("%1 ").arg(_decoder->_antList6[ii+2]*0.0001,0,'f',4);
     843              ant4 =  QString("%1 ").arg(_decoder->_antList6[ii+3]*0.0001,0,'f',4);
    818844              emit(newMessage(_staID + ": ARP (ITRF) X " + ant1.toAscii() + "m" ));
    819845              emit(newMessage(_staID + ": ARP (ITRF) Y " + ant2.toAscii() + "m"));
     
    822848            }
    823849          }
    824           _decoder->_antList.clear();
     850          _decoder->_antList6.clear();
    825851        }
    826852      }
Note: See TracChangeset for help on using the changeset viewer.