QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4FlightModes.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Dialogs
4import QtQuick.Layouts
5
6import QGroundControl
7import QGroundControl.FactControls
8import QGroundControl.Controls
9
10/// PX4 Flight Mode configuration. This control will load either the Simple or Advanced Flight Mode config
11/// based on current parameter settings.
12SetupPage {
13 pageComponent: pageComponent
14 Component {
15 id: pageComponent
16 Loader {
17 width: availableWidth
18 height: availableHeight
19 source: "qrc:/qml/QGroundControl/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml"
20
21 property Fact _nullFact
22 property bool _rcMapFltmodeExists: controller.parameterExists(-1, "RC_MAP_FLTMODE")
23 property Fact _rcMapFltmode: _rcMapFltmodeExists ? controller.getParameterFact(-1, "RC_MAP_FLTMODE") : _nullFact
24
25 FactPanelController {
26 id: controller
27 }
28 }
29 }
30}