Commit cc6730cc authored by Lorenz Meier's avatar Lorenz Meier

PX4 Safety settings: Expose HITL param

parent db714c2e
......@@ -50,9 +50,18 @@ SetupPage {
property Fact _dlLossAction: controller.getParameterFact(-1, "NAV_DLL_ACT")
property Fact _disarmLandDelay: controller.getParameterFact(-1, "COM_DISARM_LAND")
property Fact _landSpeedMC: controller.getParameterFact(-1, "MPC_LAND_SPEED", false)
property Fact _hitlEnabled: controller.getParameterFact(-1, "SYS_HITL", false)
ExclusiveGroup { id: homeLoiterGroup }
Rectangle {
x: hitlGrid.x + outerGrid.x - _margins
y: hitlGrid.y + outerGrid.y - _margins
width: hitlGrid.width + (_margins * 2)
height: hitlGrid.height + (_margins * 2)
color: qgcPal.windowShade
}
Rectangle {
x: lowBattGrid.x + outerGrid.x - _margins
y: lowBattGrid.y + outerGrid.y - _margins
......@@ -107,6 +116,43 @@ SetupPage {
columns: 3
anchors.horizontalCenter: parent.horizontalCenter
QGCLabel {
text: qsTr("Hardware in the Loop Simulation")
Layout.columnSpan: 3
}
Item { width: 1; height: _margins; Layout.columnSpan: 3 }
Item { width: _margins; height: 1 }
GridLayout {
id: hitlGrid
columns: 3
Image {
mipmap: true
fillMode: Image.PreserveAspectFit
source: qgcPal.globalTheme === qgcPal.Light ? "/qmlimages/VehicleSummaryIcon.png" : "/qmlimages/VehicleSummaryIcon.png"
Layout.rowSpan: 3
Layout.maximumWidth: _imageWidth
Layout.maximumHeight: _imageHeight
width: _imageWidth
height: _imageHeight
}
QGCLabel {
text: qsTr("HITL Enabled:")
Layout.fillWidth: true
}
FactComboBox {
fact: _hitlEnabled
indexModel: false
Layout.minimumWidth: _editFieldWidth
}
}
Item { width: 1; height: _margins; Layout.columnSpan: 3 }
QGCLabel {
text: qsTr("Low Battery Failsafe Trigger")
Layout.columnSpan: 3
......
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