-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
475 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/**************************************************************************** | ||
* | ||
* (c) 2009-2021 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> | ||
* | ||
* QGroundControl is licensed according to the terms in the file | ||
* COPYING.md in the root of the source code directory. | ||
* | ||
****************************************************************************/ | ||
|
||
import QtQuick 2.3 | ||
import QtQuick.Controls 1.2 | ||
|
||
import QGroundControl.FactSystem 1.0 | ||
import QGroundControl.FactControls 1.0 | ||
import QGroundControl.Controllers 1.0 | ||
import QGroundControl.Palette 1.0 | ||
import QGroundControl.Controls 1.0 | ||
import QGroundControl.ScreenTools 1.0 | ||
|
||
Item { | ||
id: _root | ||
|
||
property var _autotune: globals.activeVehicle.autotune | ||
property real _margins: ScreenTools.defaultFontPixelHeight | ||
|
||
QGCPalette { | ||
id: palette | ||
colorGroupEnabled: enabled | ||
} | ||
|
||
Rectangle { | ||
width: _root.width | ||
height: statusColumn.height + (2 * _margins) | ||
color: palette.windowShade | ||
enabled: _autotune.autotuneEnabled | ||
|
||
QGCButton { | ||
id: autotuneButton | ||
primary: true | ||
text: "Autotune" | ||
enabled: !_autotune.autotuneInProgress | ||
anchors { | ||
left: parent.left | ||
leftMargin: _margins | ||
verticalCenter: parent.verticalCenter | ||
} | ||
|
||
onClicked: { | ||
_autotune.autotuneRequest() | ||
} | ||
} | ||
|
||
Column { | ||
id: statusColumn | ||
spacing: _margins | ||
anchors { | ||
left: autotuneButton.right | ||
right: parent.right | ||
leftMargin: _margins | ||
rightMargin: _margins | ||
verticalCenter: parent.verticalCenter | ||
} | ||
|
||
QGCLabel { | ||
text: _autotune.autotuneStatus | ||
|
||
anchors { | ||
left: parent.left | ||
} | ||
} | ||
|
||
ProgressBar { | ||
value: _autotune.autotuneProgress | ||
|
||
anchors { | ||
left: parent.left | ||
right: parent.right | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.