QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
RTCMMavlink.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QElapsedTimer>
4#include <QtCore/QObject>
5
6typedef struct __mavlink_gps_rtcm_data_t mavlink_gps_rtcm_data_t;
7
8class RTCMMavlink : public QObject
9{
10 Q_OBJECT
11
12public:
13 RTCMMavlink(QObject *parent = nullptr);
15
16public slots:
17 void RTCMDataUpdate(QByteArrayView data);
18
19private:
20 void _calculateBandwith(qsizetype bytes);
21 static void _sendMessageToVehicle(const mavlink_gps_rtcm_data_t &data);
22
23 uint8_t _sequenceId = 0;
24 qsizetype _bandwidthByteCounter = 0;
25 QElapsedTimer _bandwidthTimer;
26};