Changeset 10420 in ntrip for trunk/BNC/src/bncgetthread.cpp
- Timestamp:
- Apr 9, 2024, 2:25:13 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncgetthread.cpp
r10234 r10420 114 114 _latencycheck = false; 115 115 } 116 117 _NMEASampl = settings.value("serialNMEASampling").toInt(); 118 _NMEALen = 55; 119 116 120 initialize(); 117 121 initDecoder(); … … 281 285 // Manual NMEA 282 286 // ----------- 283 if ((nmeaMode == "Manual GPGGA") || (nmeaMode == "Manual GNGGA")) { 287 if ((nmeaMode == "Manual GPGGA") || 288 (nmeaMode == "Manual GNGGA")) { 284 289 _serialNMEA = MANUAL_NMEA; 285 290 bncSettings settings; 286 _manualNMEASampl = settings.value("serialManualNMEASampling").toInt();287 291 QString hlp = settings.value("serialHeightNMEA").toString(); 288 292 if (hlp.isEmpty()) { … … 290 294 } 291 295 QByteArray _serialHeightNMEA = hlp.toLatin1(); 292 _manualNMEAString = ggaString(_latitude, _longitude, _serialHeightNMEA, 293 nmeaMode); 296 _manualNMEAString = ggaString(_latitude, _longitude, _serialHeightNMEA, nmeaMode); 294 297 } 295 298 } … … 316 319 ////////////////////////////////////////////////////////////////////////////// 317 320 t_irc bncGetThread::initDecoder() { 318 319 320 321 321 322 _decoder = 0; … … 978 979 979 980 if (_nmea == "yes" && _serialNMEA == MANUAL_NMEA) { 980 if (_ manualNMEASampl) {981 if (_NMEASampl) { 981 982 int dt = _lastManualNMEA.secsTo(QDateTime::currentDateTime()); 982 if (dt && (fmod(double(dt), double(_ manualNMEASampl)) == 0.0)) {983 if (dt && (fmod(double(dt), double(_NMEASampl)) == 0.0)) { 983 984 _query->sendNMEA(_manualNMEAString); 984 985 _lastManualNMEA = QDateTime::currentDateTime();
Note:
See TracChangeset
for help on using the changeset viewer.