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
5#include <QtQmlIntegration/QtQmlIntegration>
6
8{
9 Q_OBJECT
10 QML_ELEMENT
11 Q_PROPERTY(int channelCount READ channelCount NOTIFY channelCountChanged)
12 Q_PROPERTY(bool clampValues READ clampValues WRITE setClampValues NOTIFY clampValuesChanged)
13
14public:
15 explicit RCChannelMonitorController(QObject *parent = nullptr);
17
18 int channelCount() const { return _chanCount; }
19 bool clampValues() const { return _clampValues; }
20 void setClampValues(bool clamp);
21
22signals:
24 void channelValueChanged(int channel, int rcValue);
26
27private slots:
28 void channelValuesChanged(QVector<int> pwmValues);
29
30private:
31 void _connectToSignal();
32
33 int _chanCount = 0;
34 bool _clampValues = true;
35};
Used for handling missing Facts from C++ code.
void channelValueChanged(int channel, int rcValue)
void channelCountChanged(int channelCount)