|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <RTCMMavlink.h>
Inheritance diagram for RTCMMavlink:
Collaboration diagram for RTCMMavlink:Classes | |
| struct | PackResult |
Public Slots | |
| void | RTCMDataUpdate (QByteArrayView data) |
Signals | |
| void | bandwidthChanged () |
Public Member Functions | |
| RTCMMavlink (QObject *parent=nullptr) | |
| ~RTCMMavlink () | |
| quint64 | totalBytesSent () const |
| double | bandwidthKBps () const |
| void | sendSimulatedData (const std::atomic_bool &requestStop) |
Static Public Member Functions | |
| static PackResult | pack (QByteArrayView data, uint8_t sequenceId) |
Static Public Attributes | |
| static constexpr qsizetype | kFragmentLen = 180 |
| MAVLink GPS_RTCM_DATA data[] field length. | |
| static constexpr qsizetype | kMaxFragments = 4 |
| Fragment ID is 2 bits — at most 4 fragments per reassembled message. | |
| static constexpr qsizetype | kMaxAssembledLen = kFragmentLen * kMaxFragments |
| Max payload that fits one fragmented sequence (4 * 180). | |
Definition at line 21 of file RTCMMavlink.h.
| RTCMMavlink::RTCMMavlink | ( | QObject * | parent = nullptr | ) |
Definition at line 22 of file RTCMMavlink.cc.
| RTCMMavlink::~RTCMMavlink | ( | ) |
Definition at line 27 of file RTCMMavlink.cc.
|
signal |
Referenced by RTCMDataUpdate().
|
inline |
Definition at line 40 of file RTCMMavlink.h.
References DataRateTracker::kBps().
|
static |
Definition at line 42 of file RTCMMavlink.cc.
References GpsRtcmPacket::data, GpsRtcmPacket::flags, kFragmentLen, kMaxAssembledLen, kMaxFragments, RTCMMavlink::PackResult::nextSequenceId, and RTCMMavlink::PackResult::packets.
Referenced by RTCMDataUpdate().
|
slot |
Definition at line 105 of file RTCMMavlink.cc.
References bandwidthChanged(), DataRateTracker::kBps(), RTCMMavlink::PackResult::nextSequenceId, pack(), RTCMMavlink::PackResult::packets, DataRateTracker::rateUpdated(), and DataRateTracker::recordBytes().
Referenced by GPSRtk::connectGPS(), and sendSimulatedData().
| void RTCMMavlink::sendSimulatedData | ( | const std::atomic_bool & | requestStop | ) |
Stream synthetic RTCM frames to vehicles until requestStop, for the SIMULATE_RTCM_OUTPUT dev build. Blocks the calling thread.
Definition at line 131 of file RTCMMavlink.cc.
References RTCMDataUpdate().
|
inline |
Definition at line 38 of file RTCMMavlink.h.
References DataRateTracker::totalBytes().
|
staticconstexpr |
MAVLink GPS_RTCM_DATA data[] field length.
Definition at line 29 of file RTCMMavlink.h.
Referenced by pack().
|
staticconstexpr |
Max payload that fits one fragmented sequence (4 * 180).
Definition at line 33 of file RTCMMavlink.h.
Referenced by pack().
|
staticconstexpr |
Fragment ID is 2 bits — at most 4 fragments per reassembled message.
Definition at line 31 of file RTCMMavlink.h.
Referenced by pack().