QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ServoOutputMonitorController.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 servoCount READ servoCount NOTIFY servoCountChanged)
12
13public:
14 explicit ServoOutputMonitorController(QObject *parent = nullptr);
16
17 int servoCount() const { return _servoCount; }
18
20 Q_INVOKABLE int servoValue(int servoIndex) const;
21
22signals:
23 void servoCountChanged(int servoCount);
24 void servoValueChanged(int servo, int pwmValue);
25
26private slots:
27 void servoValuesChanged(QVector<int> pwmValues);
28
29private:
30 int _servoCount = 0;
31 QVector<int> _servoValues = QVector<int>(16, -1);
32};
Used for handling missing Facts from C++ code.
void servoValueChanged(int servo, int pwmValue)
void servoCountChanged(int servoCount)