Changeset 10421 in ntrip
- Timestamp:
- Apr 9, 2024, 4:15:45 PM (8 months ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncgetthread.cpp
r10420 r10421 739 739 if (_serialNMEA == MANUAL_NMEA) { 740 740 _query->startRequest(_mountPoint, _manualNMEAString); 741 _last ManualNMEA = QDateTime::currentDateTime();741 _lastNMEA = QDateTime::currentDateTime(); 742 742 } else if (_serialNMEA == AUTO_NMEA) { 743 743 if (_serialPort) { … … 754 754 QByteArray gga = data.mid(i1, i2 - i1 + 3); 755 755 _query->startRequest(_mountPoint, gga); 756 _lastNMEA = QDateTime::currentDateTime(); 756 757 } 757 758 } … … 980 981 if (_nmea == "yes" && _serialNMEA == MANUAL_NMEA) { 981 982 if (_NMEASampl) { 982 int dt = _last ManualNMEA.secsTo(QDateTime::currentDateTime());983 int dt = _lastNMEA.secsTo(QDateTime::currentDateTime()); 983 984 if (dt && (fmod(double(dt), double(_NMEASampl)) == 0.0)) { 984 985 _query->sendNMEA(_manualNMEAString); 985 _last ManualNMEA = QDateTime::currentDateTime();986 _lastNMEA = QDateTime::currentDateTime(); 986 987 } 987 988 } … … 1001 1002 if (i2 != -1 && data.size() > i2 + 1) { 1002 1003 QByteArray gga = data.mid(i1, i2 - i1 + 3); 1003 _query->sendNMEA(gga); 1004 if (_NMEASampl) { 1005 int dt = _lastNMEA.secsTo(QDateTime::currentDateTime()); 1006 if (dt && (fmod(double(dt), double(_NMEASampl)) == 0.0)) { 1007 _query->sendNMEA(gga); 1008 _lastNMEA = QDateTime::currentDateTime(); 1009 } 1010 } 1004 1011 } 1005 1012 } -
trunk/BNC/src/bncgetthread.h
r10420 r10421 118 118 QByteArray _ntripVersion; 119 119 QByteArray _manualNMEAString; 120 QDateTime _last ManualNMEA;120 QDateTime _lastNMEA; 121 121 int _NMEASampl; 122 122 int _NMEALen;
Note:
See TracChangeset
for help on using the changeset viewer.