Changeset 1139 in ntrip
- Timestamp:
- Oct 2, 2008, 3:59:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncgetthread.cpp ¶
r1138 r1139 65 65 const QByteArray& format) { 66 66 67 _decoder = 0;68 _socket = 0;69 _rawOutFile = 0;70 67 _format = format; 71 68 69 initialize(); 70 71 _inspSegm = 0; 72 73 _staID = "SASS"; 72 74 _rawInpFile = new QFile(rawInpFileName); 73 75 _rawInpFile->open(QIODevice::ReadOnly); … … 82 84 setTerminationEnabled(true); 83 85 84 _decoder = 0;85 86 _mountPoint = mountPoint; 86 87 _staID = mountPoint.path().mid(1).toAscii(); … … 90 91 _longitude = longitude; 91 92 _nmea = nmea; 93 _iMount = iMount; // index in mountpoints array 94 95 initialize(); 96 } 97 98 void bncGetThread::initialize() { 99 100 _decoder = 0; 92 101 _socket = 0; 93 _timeOut = 20*1000; // 20 seconds 94 _nextSleep = 1; // 1 second 95 _iMount = iMount; // index in mountpoints array 102 _timeOut = 20*1000; // 20 seconds 103 _nextSleep = 1; // 1 second 96 104 _rawInpFile = 0; 105 _rawOutFile = 0; 97 106 98 107 // Check name conflict … … 156 165 } 157 166 else { 158 _rnx = new bncRinex(_staID, mountPoint, format, latitude, longitude, nmea); 167 _rnx = new bncRinex(_staID, _mountPoint, 168 _format, _latitude, _longitude, _nmea); 159 169 } 160 170 _rnx_set_position = false; 161 162 171 163 172 // Raw Output 164 173 // ---------- 165 if (false) { // special option used for testing 166 QByteArray rawOutFileName = "./" + _staID + ".raw"; 167 _rawOutFile = new QFile(rawOutFileName); 168 _rawOutFile->open(QIODevice::WriteOnly); 169 } 170 else { 171 _rawOutFile = 0; 172 } 174 QByteArray rawOutFileName = "./" + _staID + ".raw"; 175 _rawOutFile = new QFile(rawOutFileName); 176 _rawOutFile->open(QIODevice::WriteOnly); 173 177 174 178 msleep(100); //sleep 0.1 sec … … 493 497 } 494 498 else if (_rawInpFile) { 495 const qint64 maxBytes = 10 24;499 const qint64 maxBytes = 10000; 496 500 nBytes = maxBytes; 497 501 }
Note:
See TracChangeset
for help on using the changeset viewer.