Browse Source

Don't use hardcoded values for the combo box actions combo boxes.

Got the new BAT_LOW_THR parameter.
QGC4.4
dogmaphobic 9 years ago committed by Lorenz Meier
parent
commit
a269adf6db
  1. 8
      src/AutoPilotPlugins/PX4/SafetyComponent.qml

8
src/AutoPilotPlugins/PX4/SafetyComponent.qml

@ -109,7 +109,7 @@ QGCView { @@ -109,7 +109,7 @@ QGCView {
FactComboBox {
id: lowBattCombo
width: _editFieldWidth
model: [ qsTr("No Action"), qsTr("Return To Land") ]
//model: [ qsTr("No Action"), qsTr("Return To Land") ]
fact: _lowBattAction
}
}
@ -121,7 +121,7 @@ QGCView { @@ -121,7 +121,7 @@ QGCView {
}
FactTextField {
id: batLowLevelField
fact: controller.getParameterFact(-1, "COM_DISARM_LAND")
fact: controller.getParameterFact(-1, "BAT_LOW_THR")
showUnits: true
width: _editFieldWidth
}
@ -166,7 +166,7 @@ QGCView { @@ -166,7 +166,7 @@ QGCView {
FactComboBox {
id: rcLossCombo
width: _editFieldWidth
model: [ qsTr("Loiter"), qsTr("Return To Land"), qsTr("Land at current position") ]
//model: [ qsTr("Loiter"), qsTr("Return To Land"), qsTr("Land at current position") ]
fact: _rcLossAction
}
}
@ -242,7 +242,7 @@ QGCView { @@ -242,7 +242,7 @@ QGCView {
FactComboBox {
id: fenceActionCombo
width: _editFieldWidth
model: [ qsTr("None"), qsTr("Warning"), qsTr("Loiter"), qsTr("Return Home"), qsTr("Flight termination") ]
//model: [ qsTr("None"), qsTr("Warning"), qsTr("Loiter"), qsTr("Return Home"), qsTr("Flight termination") ]
fact: _fenceAction
}
}

Loading…
Cancel
Save