Changeset 1770 in ntrip
- Timestamp:
- Mar 23, 2009, 2:43:24 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r1705 r1770 415 415 416 416 bncGetThread* getThread = new bncGetThread(url, format, latitude, 417 longitude, nmea, ntripVersion, iMount);417 longitude, nmea, ntripVersion, ""); 418 418 addGetThread(getThread); 419 419 } -
trunk/BNC/bncgetthread.cpp
r1768 r1770 92 92 const QByteArray& longitude, 93 93 const QByteArray& nmea, 94 const QByteArray& ntripVersion, int iMount) {94 const QByteArray& ntripVersion, const QByteArray& extraStaID) { 95 95 _rawInpFile = 0; 96 96 _mountPoint = mountPoint; 97 _staID = mountPoint.path().mid(1).toAscii();97 _staID = (extraStaID.size() == 0 ? mountPoint.path().mid(1).toAscii() : extraStaID); 98 98 _format = format; 99 99 _latitude = latitude; … … 101 101 _nmea = nmea; 102 102 _ntripVersion = ntripVersion; 103 _iMount = iMount; // index in mountpoints array104 103 105 104 initialize(); … … 122 121 _nextSleep = 0; 123 122 _rawOutFile = 0; 124 _staID_orig = _staID;125 123 126 124 bncSettings settings; 127 125 128 126 _miscMount = settings.value("miscMount").toString(); 129 130 // Check name conflict131 // -------------------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 }150 127 151 128 // RINEX writer … … 619 596 } 620 597 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 621 616 _decoder->_typeList.clear(); 622 617 _decoder->_antType.clear(); -
trunk/BNC/bncgetthread.h
r1768 r1770 50 50 const QByteArray& longitude, 51 51 const QByteArray& nmea, 52 const QByteArray& ntripVersion, int iMount);52 const QByteArray& ntripVersion, const QByteArray& extraStaID); 53 53 54 54 protected:
Note:
See TracChangeset
for help on using the changeset viewer.