QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
RCChannelMonitorController.h
Go to the documentation of this file.
1#pragma once
2
4#include "QGCMAVLink.h"
5
6#include <QtCore/QLoggingCategory>
7#include <QtQmlIntegration/QtQmlIntegration>
8
9Q_DECLARE_LOGGING_CATEGORY(RCChannelMonitorControllerLog)
10
12{
13 Q_OBJECT
14 QML_ELEMENT
15 Q_PROPERTY(int channelCount READ channelCount NOTIFY channelCountChanged)
16
17public:
18 explicit RCChannelMonitorController(QObject *parent = nullptr);
20
21 int channelCount() const { return _chanCount; }
22
23signals:
24 void channelCountChanged(int channelCount);
25 void channelValueChanged(int channel, int rcValue);
26
27private slots:
28 void channelValuesChanged(QVector<int> pwmValues);
29
30private:
31 int _chanCount = 0;
32};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
Used for handling missing Facts from C++ code.
void channelValueChanged(int channel, int rcValue)
void channelCountChanged(int channelCount)