Changeset 1424 in ntrip


Ignore:
Timestamp:
Jan 2, 2009, 2:10:18 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1410 r1424  
    605605              }
    606606            }
    607  
    608             // Antenna XYZ
    609             // ------------------
    610             if (0<_decoder->_antList.size()) {
    611               for (int ii=0;ii<_decoder->_antList.size();++ii) {
    612                 QByteArray ant1,ant2,ant3, antT;
    613                 ant1 = QString("%1 ").arg(_decoder->_antList[ii].xx,0,'f',4).toAscii();
    614                 ant2 = QString("%1 ").arg(_decoder->_antList[ii].yy,0,'f',4).toAscii();
    615                 ant3 = QString("%1 ").arg(_decoder->_antList[ii].zz,0,'f',4).toAscii();
    616                 switch (_decoder->_antList[ii].type) {
    617                 case GPSDecoder::t_antInfo::ARP: antT = "ARP"; break;
    618                 case GPSDecoder::t_antInfo::APC: antT = "APC"; break;
    619                 }
    620                 emit(newMessage(_staID + ": " + antT + " (ITRF) X " + ant1 + "m", true));
    621                 emit(newMessage(_staID + ": " + antT + " (ITRF) Y " + ant2 + "m", true));
    622                 emit(newMessage(_staID + ": " + antT + " (ITRF) Z " + ant3 + "m", true));
    623                 if (_decoder->_antList[ii].height_f) {
    624                   QByteArray ant4 = QString("%1 ").arg(_decoder->_antList[ii].height,0,'f',4).toAscii();
    625                   emit(newMessage(_staID + ": Antenna height above marker "  + ant4 + "m", true));
    626                 }
    627                 emit(newAntCrd(_staID,
    628                              _decoder->_antList[ii].xx, _decoder->_antList[ii].yy, _decoder->_antList[ii].zz,
    629                              antT));
    630               }
    631             }
     607          } 
     608        }
     609
     610        // Antenna Coordinates
     611        // -------------------
     612        for (int ii=0; ii <_decoder->_antList.size(); ii++) {
     613          QByteArray antT;
     614          if      (_decoder->_antList[ii].type == GPSDecoder::t_antInfo::ARP) {
     615            antT = "ARP";
    632616          }
    633           if ( _checkMountPoint == "ANTCRD_ONLY" && _decoder->_antList.size() ) {
    634             for (int ii=0;ii<_decoder->_antList.size();++ii) {
    635               QByteArray antT;
    636               switch (_decoder->_antList[ii].type) {
    637               case GPSDecoder::t_antInfo::ARP: antT = "ARP"; break;
    638               case GPSDecoder::t_antInfo::APC: antT = "APC"; break;
    639               }
    640               emit(newAntCrd(_staID,
    641                            _decoder->_antList[ii].xx, _decoder->_antList[ii].yy, _decoder->_antList[ii].zz,
    642                            antT));
    643             }
     617          else if (_decoder->_antList[ii].type == GPSDecoder::t_antInfo::APC) {
     618            antT = "APC";
    644619          }
     620          emit(newAntCrd(_staID, _decoder->_antList[ii].xx,
     621                         _decoder->_antList[ii].yy, _decoder->_antList[ii].zz,
     622                         antT));
    645623        }
    646624       
Note: See TracChangeset for help on using the changeset viewer.