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


Ignore:
Timestamp:
Mar 23, 2009, 2:43:24 PM (15 years ago)
Author:
zdenek
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1768 r1770  
    9292                           const QByteArray& longitude,
    9393                           const QByteArray& nmea,
    94                            const QByteArray& ntripVersion, int iMount) {
     94                           const QByteArray& ntripVersion, const QByteArray& extraStaID) {
    9595  _rawInpFile   = 0;
    9696  _mountPoint   = mountPoint;
    97   _staID        = mountPoint.path().mid(1).toAscii();
     97  _staID        = (extraStaID.size() == 0 ? mountPoint.path().mid(1).toAscii() : extraStaID);
    9898  _format       = format;
    9999  _latitude     = latitude;
     
    101101  _nmea         = nmea;
    102102  _ntripVersion = ntripVersion;
    103   _iMount       = iMount;   // index in mountpoints array
    104103
    105104  initialize();
     
    122121  _nextSleep     = 0;
    123122  _rawOutFile    = 0;
    124   _staID_orig    = _staID;
    125123
    126124  bncSettings settings;
    127125
    128126  _miscMount = settings.value("miscMount").toString();
    129 
    130   // Check name conflict
    131   // -------------------
    132   QListIterator<QString> it(settings.value("mountPoints").toStringList());
    133   int num = 0;
    134   int ind = -1;
    135   while (it.hasNext()) {
    136     ++ind;
    137     QStringList hlp = it.next().split(" ");
    138     if (hlp.size() <= 1) continue;
    139     QUrl url(hlp[0]);
    140     if (_mountPoint.path() == url.path()) {
    141       if (_iMount > ind || _iMount < 0) {
    142         ++num;
    143       }
    144     }
    145   }
    146 
    147   if (num > 0) {
    148     _staID = _staID.left(_staID.length()-1) + QString("%1").arg(num).toAscii();
    149   }   
    150127
    151128  // RINEX writer
     
    619596  }
    620597
     598#ifdef MLS_SOFTWARE
     599  for (int ii=0; ii <_decoder->_antList.size(); ii++) {
     600        QByteArray antT;
     601        if      (_decoder->_antList[ii].type == GPSDecoder::t_antInfo::ARP) {
     602          antT = "ARP";
     603        }
     604        else if (_decoder->_antList[ii].type == GPSDecoder::t_antInfo::APC) {
     605          antT = "APC";
     606        }
     607        emit(newAntCrd(_staID, _decoder->_antList[ii].xx,
     608                       _decoder->_antList[ii].yy, _decoder->_antList[ii].zz,
     609                       antT));
     610  }
     611#endif
     612
     613
     614
     615
    621616  _decoder->_typeList.clear();
    622617  _decoder->_antType.clear();
Note: See TracChangeset for help on using the changeset viewer.