|
|
@ -8,7 +8,7 @@ |
|
|
|
****************************************************************************/ |
|
|
|
****************************************************************************/ |
|
|
|
|
|
|
|
|
|
|
|
import QtQuick 2.3 |
|
|
|
import QtQuick 2.3 |
|
|
|
import QtQuick.Controls 1.2 |
|
|
|
import QtQuick.Controls 2.4 |
|
|
|
import QtQuick.Dialogs 1.2 |
|
|
|
import QtQuick.Dialogs 1.2 |
|
|
|
import QtQuick.Layouts 1.11 |
|
|
|
import QtQuick.Layouts 1.11 |
|
|
|
|
|
|
|
|
|
|
@ -90,7 +90,7 @@ SetupPage { |
|
|
|
QGCViewDialog { |
|
|
|
QGCViewDialog { |
|
|
|
|
|
|
|
|
|
|
|
function accept() { |
|
|
|
function accept() { |
|
|
|
controller.spektrumBindMode(radioGroup.current.bindMode) |
|
|
|
controller.spektrumBindMode(radioGroup.checkedButton.bindMode) |
|
|
|
hideDialog() |
|
|
|
hideDialog() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -98,6 +98,8 @@ SetupPage { |
|
|
|
hideDialog() |
|
|
|
hideDialog() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ButtonGroup { id: radioGroup } |
|
|
|
|
|
|
|
|
|
|
|
Column { |
|
|
|
Column { |
|
|
|
anchors.fill: parent |
|
|
|
anchors.fill: parent |
|
|
|
spacing: 5 |
|
|
|
spacing: 5 |
|
|
@ -110,17 +112,20 @@ SetupPage { |
|
|
|
|
|
|
|
|
|
|
|
QGCRadioButton { |
|
|
|
QGCRadioButton { |
|
|
|
text: qsTr("DSM2 Mode") |
|
|
|
text: qsTr("DSM2 Mode") |
|
|
|
|
|
|
|
ButtonGroup.group: radioGroup |
|
|
|
property int bindMode: RadioComponentController.DSM2 |
|
|
|
property int bindMode: RadioComponentController.DSM2 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QGCRadioButton { |
|
|
|
QGCRadioButton { |
|
|
|
text: qsTr("DSMX (7 channels or less)") |
|
|
|
text: qsTr("DSMX (7 channels or less)") |
|
|
|
|
|
|
|
ButtonGroup.group: radioGroup |
|
|
|
property int bindMode: RadioComponentController.DSMX7 |
|
|
|
property int bindMode: RadioComponentController.DSMX7 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QGCRadioButton { |
|
|
|
QGCRadioButton { |
|
|
|
checked: true |
|
|
|
checked: true |
|
|
|
text: qsTr("DSMX (8 channels or more)") |
|
|
|
text: qsTr("DSMX (8 channels or more)") |
|
|
|
|
|
|
|
ButtonGroup.group: radioGroup |
|
|
|
property int bindMode: RadioComponentController.DSMX8 |
|
|
|
property int bindMode: RadioComponentController.DSMX8 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|