QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ServoOutputMonitorController.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
FactPanelController.h
"
4
5
#include <QtQmlIntegration/QtQmlIntegration>
6
7
class
ServoOutputMonitorController
:
public
FactPanelController
8
{
9
Q_OBJECT
10
QML_ELEMENT
11
Q_PROPERTY(
int
servoCount READ servoCount NOTIFY
servoCountChanged
)
12
13
public
:
14
explicit
ServoOutputMonitorController
(QObject *parent =
nullptr
);
15
~ServoOutputMonitorController
();
16
17
int
servoCount()
const
{
return
_servoCount; }
18
20
Q_INVOKABLE
int
servoValue(
int
servoIndex)
const
;
21
22
signals:
23
void
servoCountChanged
(
int
servoCount);
24
void
servoValueChanged
(
int
servo,
int
pwmValue);
25
26
private
slots:
27
void
servoValuesChanged(QVector<int> pwmValues);
28
29
private
:
30
int
_servoCount = 0;
31
QVector<int> _servoValues = QVector<int>(16, -1);
32
};
FactPanelController.h
FactPanelController
Used for handling missing Facts from C++ code.
Definition
FactPanelController.h:13
ServoOutputMonitorController
Definition
ServoOutputMonitorController.h:8
ServoOutputMonitorController::servoValueChanged
void servoValueChanged(int servo, int pwmValue)
ServoOutputMonitorController::servoCountChanged
void servoCountChanged(int servoCount)
src
QmlControls
ServoOutputMonitorController.h
Generated by
1.9.8