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
#include "
QGCMAVLink.h
"
5
6
#include <QtCore/QLoggingCategory>
7
#include <QtQmlIntegration/QtQmlIntegration>
8
9
Q_DECLARE_LOGGING_CATEGORY
(RCChannelMonitorControllerLog)
10
11
class
RCChannelMonitorController
: public
FactPanelController
12
{
13
Q_OBJECT
14
QML_ELEMENT
15
Q_PROPERTY(
int
channelCount READ channelCount NOTIFY channelCountChanged)
16
17
public
:
18
explicit
RCChannelMonitorController
(QObject *parent =
nullptr
);
19
~RCChannelMonitorController
();
20
21
int
channelCount()
const
{
return
_chanCount; }
22
23
signals:
24
void
channelCountChanged
(
int
channelCount);
25
void
channelValueChanged
(
int
channel,
int
rcValue);
26
27
private
slots:
28
void
channelValuesChanged(QVector<int> pwmValues);
29
30
private
:
31
int
_chanCount = 0;
32
};
Q_DECLARE_LOGGING_CATEGORY
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
FactPanelController.h
QGCMAVLink.h
FactPanelController
Used for handling missing Facts from C++ code.
Definition
FactPanelController.h:16
RCChannelMonitorController
Definition
RCChannelMonitorController.h:12
RCChannelMonitorController::channelValueChanged
void channelValueChanged(int channel, int rcValue)
RCChannelMonitorController::channelCountChanged
void channelCountChanged(int channelCount)
src
QmlControls
RCChannelMonitorController.h
Generated by
1.9.8