2,新增“Apps”; 3,新增“Common”; 4,新增“FileList”; 5,新增“MediaX”; 6,新增“OpenSource”; 7,新增“Samples”; 8,新增“SoftwareBusinessLines”.
64 lines
1.5 KiB
QML
64 lines
1.5 KiB
QML
import QtQuick 2.6
|
|
import QtQuick.Layouts 1.2
|
|
import QtQuick.Controls 1.2
|
|
import QtQuick.Controls.Styles 1.4
|
|
|
|
Item {
|
|
width: parent.width
|
|
height: parent.height
|
|
|
|
|
|
Rectangle{
|
|
anchors.centerIn: parent
|
|
|
|
width: 450
|
|
height: parent.height -40
|
|
color: "#333333"
|
|
|
|
|
|
Column {
|
|
anchors.top: parent.top
|
|
anchors.topMargin: 20
|
|
width: parent.width
|
|
height: parent.height
|
|
spacing: 20
|
|
|
|
GDUSwitch {
|
|
id:sVistionObstacle
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
text: "视觉避障"
|
|
onSelected: {
|
|
isSelected
|
|
console.log("onSelected")
|
|
}
|
|
}
|
|
|
|
GDUSwitch {
|
|
id:sRadar
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
text: "显示雷达图"
|
|
onSelected: {
|
|
console.log("onSelected")
|
|
}
|
|
}
|
|
Text {
|
|
anchors.left: sRadar.left
|
|
id: label_1
|
|
text: qsTr("开启时,飞行界面将会显示检测到障碍物的雷达图标")
|
|
color: "white"
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function checkDroneStatus(){
|
|
//检查无人机状态
|
|
//检查当前模式是否为姿态模式,如果为姿态模式则关闭
|
|
//检查当前模式是否为运动模式,如果为运动模式则关闭
|
|
}
|
|
|
|
|
|
|
|
}
|