Commit a269adf6 authored by dogmaphobic's avatar dogmaphobic Committed by Lorenz Meier

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

Got the new BAT_LOW_THR parameter.
parent f68b5622
...@@ -109,7 +109,7 @@ QGCView { ...@@ -109,7 +109,7 @@ QGCView {
FactComboBox { FactComboBox {
id: lowBattCombo id: lowBattCombo
width: _editFieldWidth width: _editFieldWidth
model: [ qsTr("No Action"), qsTr("Return To Land") ] //model: [ qsTr("No Action"), qsTr("Return To Land") ]
fact: _lowBattAction fact: _lowBattAction
} }
} }
...@@ -121,7 +121,7 @@ QGCView { ...@@ -121,7 +121,7 @@ QGCView {
} }
FactTextField { FactTextField {
id: batLowLevelField id: batLowLevelField
fact: controller.getParameterFact(-1, "COM_DISARM_LAND") fact: controller.getParameterFact(-1, "BAT_LOW_THR")
showUnits: true showUnits: true
width: _editFieldWidth width: _editFieldWidth
} }
...@@ -166,7 +166,7 @@ QGCView { ...@@ -166,7 +166,7 @@ QGCView {
FactComboBox { FactComboBox {
id: rcLossCombo id: rcLossCombo
width: _editFieldWidth 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 fact: _rcLossAction
} }
} }
...@@ -242,7 +242,7 @@ QGCView { ...@@ -242,7 +242,7 @@ QGCView {
FactComboBox { FactComboBox {
id: fenceActionCombo id: fenceActionCombo
width: _editFieldWidth 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 fact: _fenceAction
} }
} }
......
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