Unverified Commit 4a529bd8 authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #7446 from mavlink/skipAPM

Don't offer Ardupilot firmware if support for it is not available.
parents ecff5451 2cd878dc
......@@ -293,14 +293,14 @@ SetupPage {
QGCLabel {
width: parent.width
wrapMode: Text.WordWrap
text: _singleFirmwareMode ? _singleFirmwareLabel : (px4Flow ? _px4FlowLabel : _pixhawkLabel)
text: (_singleFirmwareMode || !QGroundControl.apmFirmwareSupported) ? _singleFirmwareLabel : (px4Flow ? _px4FlowLabel : _pixhawkLabel)
readonly property string _px4FlowLabel: qsTr("Detected PX4 Flow board. The firmware you use on the PX4 Flow must match the AutoPilot firmware type you are using on the vehicle:")
readonly property string _pixhawkLabel: qsTr("Detected Pixhawk board. You can select from the following flight stacks:")
readonly property string _singleFirmwareLabel: qsTr("Press Ok to upgrade your vehicle.")
}
QGCLabel { text: qsTr("Flight Stack") }
QGCLabel { text: qsTr("Flight Stack"); visible: QGroundControl.apmFirmwareSupported }
Column {
......@@ -309,7 +309,7 @@ SetupPage {
text: qsTr("PX4 Pro ")
textBold: _defaultFirmwareIsPX4
checked: _defaultFirmwareIsPX4
visible: !_singleFirmwareMode && !px4Flow
visible: !_singleFirmwareMode && !px4Flow && QGroundControl.apmFirmwareSupported
onClicked: {
_defaultFirmwareFact.rawValue = _defaultFimwareTypePX4
......@@ -322,7 +322,7 @@ SetupPage {
text: qsTr("ArduPilot")
textBold: !_defaultFirmwareIsPX4
checked: !_defaultFirmwareIsPX4
visible: !_singleFirmwareMode && !px4Flow
visible: !_singleFirmwareMode && !px4Flow && QGroundControl.apmFirmwareSupported
onClicked: {
_defaultFirmwareFact.rawValue = _defaultFimwareTypeAPM
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment