|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <NTRIPConnectionStats.h>
Inheritance diagram for NTRIPConnectionStats:
Collaboration diagram for NTRIPConnectionStats:Signals | |
| void | bytesReceivedChanged () |
| void | messagesReceivedChanged () |
| void | dataRateChanged () |
| void | correctionAgeChanged () |
| void | dataStaleChanged () |
| void | messageCountsByIdChanged () |
Public Member Functions | |
| NTRIPConnectionStats (QObject *parent=nullptr) | |
| void | start () |
| void | stop () |
| void | recordMessage (int bytes, int messageId=0) |
| void | reset () |
| quint64 | bytesReceived () const |
| quint32 | messagesReceived () const |
| double | dataRateBytesPerSec () const |
| double | correctionAgeSec () const |
| bool | dataStale () const |
| QVariantList | messageCountsById () const |
Definition at line 14 of file NTRIPConnectionStats.h.
|
explicit |
Per-RTCM-message-ID counts since the current connection started. Returned as a list of [id, count] pairs sorted ascending by id so the QML Repeater can render deterministic chips without re-sorting.
Definition at line 5 of file NTRIPConnectionStats.cc.
References DataRateTracker::bytesPerSec(), bytesReceivedChanged(), correctionAgeChanged(), dataRateChanged(), dataStaleChanged(), messageCountsByIdChanged(), messagesReceivedChanged(), and DataRateTracker::totalBytes().
|
inline |
Definition at line 39 of file NTRIPConnectionStats.h.
References DataRateTracker::totalBytes().
|
signal |
Referenced by NTRIPConnectionStats(), recordMessage(), reset(), and stop().
|
signal |
Referenced by NTRIPConnectionStats(), and reset().
|
inline |
Definition at line 45 of file NTRIPConnectionStats.h.
|
inline |
Definition at line 43 of file NTRIPConnectionStats.h.
References DataRateTracker::bytesPerSec().
|
signal |
Referenced by NTRIPConnectionStats(), recordMessage(), reset(), and stop().
|
inline |
Definition at line 47 of file NTRIPConnectionStats.h.
|
signal |
Referenced by NTRIPConnectionStats(), recordMessage(), and reset().
| QVariantList NTRIPConnectionStats::messageCountsById | ( | ) | const |
Definition at line 94 of file NTRIPConnectionStats.cc.
|
signal |
Referenced by NTRIPConnectionStats(), and reset().
|
inline |
Definition at line 41 of file NTRIPConnectionStats.h.
|
signal |
Referenced by NTRIPConnectionStats(), and reset().
| void NTRIPConnectionStats::recordMessage | ( | int | bytes, |
| int | messageId = 0 |
||
| ) |
Record a received RTCM message. messageId = 0 is treated as "unknown/unparseable" and tracked under a distinct bucket so it still shows up in diagnostics.
Definition at line 54 of file NTRIPConnectionStats.cc.
References bytesReceivedChanged(), dataRateChanged(), dataStaleChanged(), DataRateTracker::rateUpdated(), DataRateTracker::recordBytes(), and DataRateTracker::totalBytes().
| void NTRIPConnectionStats::reset | ( | ) |
Definition at line 75 of file NTRIPConnectionStats.cc.
References bytesReceivedChanged(), correctionAgeChanged(), dataRateChanged(), dataStaleChanged(), messageCountsByIdChanged(), messagesReceivedChanged(), and DataRateTracker::reset().
| void NTRIPConnectionStats::start | ( | ) |
Definition at line 38 of file NTRIPConnectionStats.cc.
| void NTRIPConnectionStats::stop | ( | ) |
Definition at line 43 of file NTRIPConnectionStats.cc.
References DataRateTracker::bytesPerSec(), bytesReceivedChanged(), dataRateChanged(), and DataRateTracker::reset().