Changeset 366 in ntrip for trunk/BNC/bncgetthread.cpp
- Timestamp:
- Jan 17, 2007, 4:17:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r358 r366 61 61 //////////////////////////////////////////////////////////////////////////// 62 62 bncGetThread::bncGetThread(const QUrl& mountPoint, 63 const QByteArray& format, int iMount) { 63 const QByteArray& format, 64 const QByteArray& latitude, 65 const QByteArray& longitude, 66 const QByteArray& nmea, int iMount) { 64 67 _decoder = 0; 65 68 _mountPoint = mountPoint; … … 67 70 _staID_orig = _staID; 68 71 _format = format; 72 _latitude = latitude; 73 _longitude = longitude; 74 _nmea = nmea; 69 75 _socket = 0; 70 76 _timeOut = 20*1000; // 20 seconds … … 105 111 // Connect to Caster, send the Request (static) 106 112 //////////////////////////////////////////////////////////////////////////// 107 QTcpSocket* bncGetThread::request(const QUrl& mountPoint, int timeOut, 113 QTcpSocket* bncGetThread::request(const QUrl& mountPoint, 114 QByteArray& latitude, QByteArray& longitude, 115 QByteArray& nmea, int timeOut, 108 116 QString& msg) { 109 117 … … 160 168 161 169 double lat, lon; 162 lat = settings.value("approxLat", 0).toDouble(); 163 lon = settings.value("approxLon", 0).toDouble(); 164 if ((lat != 0.0) && (lon != 0.0) && (hlp.path().length() > 2) && (hlp.path().indexOf(".skl") < 0)) { 170 171 lat = strtod(latitude,NULL); 172 lon = strtod(longitude,NULL); 173 174 if ((nmea == "VRS") && (hlp.path().length() > 2) && (hlp.path().indexOf(".skl") < 0)) { 165 175 const char* flagN="N"; 166 176 const char* flagE="E"; … … 221 231 QString msg; 222 232 223 _socket = bncGetThread::request(_mountPoint, _ timeOut, msg);233 _socket = bncGetThread::request(_mountPoint, _latitude, _longitude, _nmea, _timeOut, msg); 224 234 225 235 //// emit(newMessage(msg.toAscii())); … … 361 371 emit newObs(_staID, *it); 362 372 bool firstObs = (it == _decoder->_obsList.begin()); 363 _global_caster->newObs(_staID, _mountPoint, firstObs, *it, _format );373 _global_caster->newObs(_staID, _mountPoint, firstObs, *it, _format, _latitude, _longitude, _nmea); 364 374 } 365 375 _decoder->_obsList.clear();
Note:
See TracChangeset
for help on using the changeset viewer.