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

#include <RTCMUdpInput.h>

Inheritance diagram for RTCMUdpInput:
Collaboration diagram for RTCMUdpInput:

Signals

void frameReceived (const QString &sender, const QByteArray &data, qint64 receivedAtMs)
 A valid frame from sender, the sender's address, stamped receivedAtMs with the scheduler's time.

Public Member Functions

 RTCMUdpInput (QObject *parent=nullptr, RuntimeScheduler *scheduler=nullptr)
 ~RTCMUdpInput () override
bool start (quint16 port, QString *errorString=nullptr)
void stop ()

Detailed Description

Receives RTCM datagrams with bounded work and independent framing for each sender. Valid frames are emitted complete and stamped with the scheduler's time; candidates that fail framing or CRC are dropped.

Definition at line 18 of file RTCMUdpInput.h.

Constructor & Destructor Documentation

◆ RTCMUdpInput()

RTCMUdpInput::RTCMUdpInput ( QObject * parent = nullptr,
RuntimeScheduler * scheduler = nullptr )
explicit

Definition at line 27 of file RTCMUdpInput.cc.

◆ ~RTCMUdpInput()

RTCMUdpInput::~RTCMUdpInput ( )
override

Definition at line 34 of file RTCMUdpInput.cc.

References stop().

Member Function Documentation

◆ frameReceived

void RTCMUdpInput::frameReceived ( const QString & sender,
const QByteArray & data,
qint64 receivedAtMs )
signal

A valid frame from sender, the sender's address, stamped receivedAtMs with the scheduler's time.

◆ start()

bool RTCMUdpInput::start ( quint16 port,
QString * errorString = nullptr )

Listens on port with fresh framing state, replacing any current socket; port zero requests an ephemeral port. When binding fails, errorString receives the reason.

Definition at line 40 of file RTCMUdpInput.cc.

References stop().

◆ stop()

void RTCMUdpInput::stop ( )

Definition at line 61 of file RTCMUdpInput.cc.

Referenced by start(), and ~RTCMUdpInput().


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