QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4SimpleFlightModesController.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QVariantList>
4#include <QtQmlIntegration/QtQmlIntegration>
5
7
11{
12 Q_OBJECT
13 QML_ELEMENT
14public:
16
18 Q_PROPERTY(int channelCount MEMBER _channelCount NOTIFY channelCountChanged)
19 Q_PROPERTY(QVariantList rcChannelValues MEMBER _rcChannelValues NOTIFY rcChannelValuesChanged)
20
21 int activeFlightMode(void) const { return _activeFlightMode; }
22
23signals:
28
29private slots:
30 void channelValuesChanged(QVector<int> pwmValues);
31
32private:
33 int _activeFlightMode;
34 int _channelCount = 0;
35 QVariantList _rcChannelValues;
36};
Used for handling missing Facts from C++ code.
MVC Controller for PX4SimpleFlightModes.qml.
void activeFlightModeChanged(int activeFlightMode)