|
QGroundControl
Ground Control Station for MAVLink Drones
|
Listens on a UDP port for raw RTCM3 correction data and emits it for forwarding to connected vehicles via RTCMMavlink::RTCMDataUpdate(). More...
#include <RTCMUdpInput.h>
Inheritance diagram for RTCMUdpInput:
Collaboration diagram for RTCMUdpInput:Signals | |
| void | rtcmDataReceived (const QByteArray &data) |
| void | runningChanged () |
| void | portChanged () |
Public Member Functions | |
| RTCMUdpInput (quint16 port, QObject *parent=nullptr) | |
| ~RTCMUdpInput () override | |
| bool | start () |
| void | stop () |
| Unbind the socket and stop accepting datagrams. | |
| bool | isRunning () const |
| quint16 | port () const |
| void | setPort (quint16 port) |
| Change the listen port. If already running, restarts automatically. | |
Listens on a UDP port for raw RTCM3 correction data and emits it for forwarding to connected vehicles via RTCMMavlink::RTCMDataUpdate().
Typical wiring:
The class accepts datagrams from any sender on the bound port. Each datagram is emitted as-is; no RTCM framing validation is performed here — that is the responsibility of the downstream consumer (RTCMMavlink fragments as needed).
Definition at line 26 of file RTCMUdpInput.h.
|
explicit |
Definition at line 6 of file RTCMUdpInput.cc.
|
override |
Definition at line 13 of file RTCMUdpInput.cc.
References stop().
|
inline |
Definition at line 44 of file RTCMUdpInput.h.
|
inline |
Definition at line 45 of file RTCMUdpInput.h.
Referenced by setPort().
|
signal |
Referenced by setPort().
|
signal |
Emitted once per received datagram with the raw RTCM payload. Connect directly to RTCMMavlink::RTCMDataUpdate (same thread).
Referenced by NTRIPManager::NTRIPManager().
| void RTCMUdpInput::setPort | ( | quint16 | port | ) |
Change the listen port. If already running, restarts automatically.
Definition at line 46 of file RTCMUdpInput.cc.
References port(), portChanged(), and start().
Referenced by NTRIPManager::NTRIPManager().
| bool RTCMUdpInput::start | ( | ) |
Bind the socket and begin accepting datagrams. Safe to call on an already-running instance — restarts with the current port.
Definition at line 18 of file RTCMUdpInput.cc.
References runningChanged(), and stop().
Referenced by NTRIPManager::NTRIPManager(), and setPort().
| void RTCMUdpInput::stop | ( | ) |
Unbind the socket and stop accepting datagrams.
Definition at line 34 of file RTCMUdpInput.cc.
References runningChanged().
Referenced by NTRIPManager::NTRIPManager(), start(), and ~RTCMUdpInput().