7 changed files with 134 additions and 139 deletions
@ -0,0 +1,57 @@ |
|||||||
|
/**************************************************************************** |
||||||
|
* |
||||||
|
* (c) 2009-2020 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 QtQuick.Layouts 1.2 |
||||||
|
|
||||||
|
import QGroundControl 1.0 |
||||||
|
import QGroundControl.Controls 1.0 |
||||||
|
import QGroundControl.FactSystem 1.0 |
||||||
|
import QGroundControl.ScreenTools 1.0 |
||||||
|
|
||||||
|
Item { |
||||||
|
width: availableWidth |
||||||
|
|
||||||
|
FactPanelController { |
||||||
|
id: controller |
||||||
|
} |
||||||
|
|
||||||
|
QGCTabBar { |
||||||
|
id: bar |
||||||
|
width: parent.width |
||||||
|
anchors.top: parent.top |
||||||
|
QGCTabButton { |
||||||
|
text: qsTr("Rate Controller") |
||||||
|
} |
||||||
|
QGCTabButton { |
||||||
|
text: qsTr("Attitude Controller") |
||||||
|
} |
||||||
|
QGCTabButton { |
||||||
|
text: qsTr("Velocity Controller") |
||||||
|
} |
||||||
|
QGCTabButton { |
||||||
|
text: qsTr("Position Controller") |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
property var pages: [ |
||||||
|
"PX4TuningComponentCopterRate.qml", |
||||||
|
"PX4TuningComponentCopterAttitude.qml", |
||||||
|
"PX4TuningComponentCopterVelocity.qml", |
||||||
|
"PX4TuningComponentCopterPosition.qml" |
||||||
|
] |
||||||
|
|
||||||
|
Loader { |
||||||
|
source: pages[bar.currentIndex] |
||||||
|
width: parent.width |
||||||
|
anchors.top: bar.bottom |
||||||
|
anchors.topMargin: ScreenTools.defaultFontPixelWidth |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,45 @@ |
|||||||
|
/**************************************************************************** |
||||||
|
* |
||||||
|
* (c) 2009-2020 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 QtQuick.Layouts 1.2 |
||||||
|
|
||||||
|
import QGroundControl 1.0 |
||||||
|
import QGroundControl.Controls 1.0 |
||||||
|
import QGroundControl.FactSystem 1.0 |
||||||
|
import QGroundControl.ScreenTools 1.0 |
||||||
|
|
||||||
|
Item { |
||||||
|
width: availableWidth |
||||||
|
|
||||||
|
FactPanelController { |
||||||
|
id: controller |
||||||
|
} |
||||||
|
|
||||||
|
QGCTabBar { |
||||||
|
id: bar |
||||||
|
width: parent.width |
||||||
|
anchors.top: parent.top |
||||||
|
QGCTabButton { |
||||||
|
text: qsTr("TECS") |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
property var pages: [ |
||||||
|
"PX4TuningComponentPlaneTECS.qml", |
||||||
|
] |
||||||
|
|
||||||
|
Loader { |
||||||
|
source: pages[bar.currentIndex] |
||||||
|
width: parent.width |
||||||
|
anchors.top: bar.bottom |
||||||
|
anchors.topMargin: ScreenTools.defaultFontPixelWidth |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue