QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NTRIPConnectionStats Class Reference

#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
 

Detailed Description

Definition at line 14 of file NTRIPConnectionStats.h.

Constructor & Destructor Documentation

◆ NTRIPConnectionStats()

NTRIPConnectionStats::NTRIPConnectionStats ( QObject *  parent = nullptr)
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().

Member Function Documentation

◆ bytesReceived()

quint64 NTRIPConnectionStats::bytesReceived ( ) const
inline

Definition at line 39 of file NTRIPConnectionStats.h.

References DataRateTracker::totalBytes().

◆ bytesReceivedChanged

void NTRIPConnectionStats::bytesReceivedChanged ( )
signal

◆ correctionAgeChanged

void NTRIPConnectionStats::correctionAgeChanged ( )
signal

Referenced by NTRIPConnectionStats(), and reset().

◆ correctionAgeSec()

double NTRIPConnectionStats::correctionAgeSec ( ) const
inline

Definition at line 45 of file NTRIPConnectionStats.h.

◆ dataRateBytesPerSec()

double NTRIPConnectionStats::dataRateBytesPerSec ( ) const
inline

Definition at line 43 of file NTRIPConnectionStats.h.

References DataRateTracker::bytesPerSec().

◆ dataRateChanged

void NTRIPConnectionStats::dataRateChanged ( )
signal

◆ dataStale()

bool NTRIPConnectionStats::dataStale ( ) const
inline

Definition at line 47 of file NTRIPConnectionStats.h.

◆ dataStaleChanged

void NTRIPConnectionStats::dataStaleChanged ( )
signal

◆ messageCountsById()

QVariantList NTRIPConnectionStats::messageCountsById ( ) const

Definition at line 94 of file NTRIPConnectionStats.cc.

◆ messageCountsByIdChanged

void NTRIPConnectionStats::messageCountsByIdChanged ( )
signal

Referenced by NTRIPConnectionStats(), and reset().

◆ messagesReceived()

quint32 NTRIPConnectionStats::messagesReceived ( ) const
inline

Definition at line 41 of file NTRIPConnectionStats.h.

◆ messagesReceivedChanged

void NTRIPConnectionStats::messagesReceivedChanged ( )
signal

Referenced by NTRIPConnectionStats(), and reset().

◆ recordMessage()

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().

◆ reset()

◆ start()

void NTRIPConnectionStats::start ( )

Definition at line 38 of file NTRIPConnectionStats.cc.

◆ stop()

void NTRIPConnectionStats::stop ( )

The documentation for this class was generated from the following files: