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/QLoggingCategory>
5#include <QtCore/QObject>
6
7typedef struct __mavlink_gps_rtcm_data_t mavlink_gps_rtcm_data_t;
8
9Q_DECLARE_LOGGING_CATEGORY(RTCMMavlinkLog)
10
11class RTCMMavlink : public QObject
12{
13 Q_OBJECT
14
15public:
16 RTCMMavlink(QObject *parent = nullptr);
18
19public slots:
20 void RTCMDataUpdate(QByteArrayView data);
21
22private:
23 void _calculateBandwith(qsizetype bytes);
24 static void _sendMessageToVehicle(const mavlink_gps_rtcm_data_t &data);
25
26 uint8_t _sequenceId = 0;
27 qsizetype _bandwidthByteCounter = 0;
28 QElapsedTimer _bandwidthTimer;
29};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)