QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
AutotuneUI.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.FactControls
7import QGroundControl.Controls
8
9ColumnLayout {
10 id: _root
11 spacing: ScreenTools.defaultFontPixelHeight
12
13 property var _activeVehicle: globals.activeVehicle
14 property var _autotuneManager: _activeVehicle.autotune
15 property real _margins: ScreenTools.defaultFontPixelHeight
16
17 QGCButton {
18 id: autotuneButton
19 primary: true
20 text: qsTr("Start AutoTune")
21 enabled: _activeVehicle.flying && !_activeVehicle.landing && !_autotuneManager.autotuneInProgress
22
23 onClicked: QGroundControl.showMessageDialog(_root, autotuneButton.text,
24 qsTr("WARNING!\
25 \n\nThe auto-tuning procedure should be executed with caution and requires the vehicle to fly stable enough before attempting the procedure! \
26 \n\nBefore starting the auto-tuning process, make sure that: \
27 \n1. You have read the auto-tuning guide and have followed the preliminary steps \
28 \n2. The current control gains are good enough to stabilize the drone in presence of medium disturbances \
29 \n3. You are ready to abort the auto-tuning sequence by moving the RC sticks, if anything unexpected happens. \
30 \n\nClick Ok to start the auto-tuning process.\n"),
31 Dialog.Ok | Dialog.Cancel,
32 function() { _autotuneManager.autotuneRequest() })
33 }
34
35 QGCLabel { text: _autotuneManager.autotuneStatus }
36
37 ProgressBar {
38 value: _autotuneManager.autotuneProgress
39 }
40}