QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
RCChannelMonitorController.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
FactPanelController.h
"
4
5
#include <QtQmlIntegration/QtQmlIntegration>
6
7
class
RCChannelMonitorController
:
public
FactPanelController
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
14
public
:
15
explicit
RCChannelMonitorController
(QObject *parent =
nullptr
);
16
~RCChannelMonitorController
();
17
18
int
channelCount
()
const
{
return
_chanCount; }
19
bool
clampValues
()
const
{
return
_clampValues; }
20
void
setClampValues
(
bool
clamp);
21
22
signals:
23
void
channelCountChanged
(
int
channelCount
);
24
void
channelValueChanged
(
int
channel,
int
rcValue);
25
void
clampValuesChanged
();
26
27
private
slots:
28
void
channelValuesChanged(QVector<int> pwmValues);
29
30
private
:
31
void
_connectToSignal();
32
33
int
_chanCount = 0;
34
bool
_clampValues =
true
;
35
};
FactPanelController.h
FactPanelController
Used for handling missing Facts from C++ code.
Definition
FactPanelController.h:14
RCChannelMonitorController
Definition
RCChannelMonitorController.h:8
RCChannelMonitorController::channelValueChanged
void channelValueChanged(int channel, int rcValue)
RCChannelMonitorController::~RCChannelMonitorController
~RCChannelMonitorController()
Definition
RCChannelMonitorController.cc:15
RCChannelMonitorController::channelCount
int channelCount() const
Definition
RCChannelMonitorController.h:18
RCChannelMonitorController::clampValues
bool clampValues() const
Definition
RCChannelMonitorController.h:19
RCChannelMonitorController::setClampValues
void setClampValues(bool clamp)
Definition
RCChannelMonitorController.cc:20
RCChannelMonitorController::channelCountChanged
void channelCountChanged(int channelCount)
RCChannelMonitorController::clampValuesChanged
void clampValuesChanged()
src
QmlControls
RCChannelMonitorController.h
Generated by
1.9.8