Browse Source

Rework tuning UI

QGC4.4
Don Gagne 9 years ago
parent
commit
3af867356f
  1. 25
      src/QmlControls/FactSliderPanel.qml
  2. 1
      src/comm/PX4MockLink.params

25
src/QmlControls/FactSliderPanel.qml

@ -80,30 +80,31 @@ QGCView { @@ -80,30 +80,31 @@ QGCView {
font.weight: Font.DemiBold
}
Rectangle {
id: sliderRect
anchors.topMargin: _margins / 2
anchors.left: parent.left
anchors.right: parent.right
anchors.top: panelLabel.bottom
height: sliderColumns.y + sliderColumns.height + _margins
color: palette.windowShade
Column {
id: sliderColumns
anchors.margins: _margins
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.top: panelLabel.bottom
spacing: _margins
Repeater {
id: sliderRepeater
model: sliderModel
Rectangle {
id: sliderRect
anchors.left: parent.left
anchors.right: parent.right
height: sliderColumn.y + sliderColumn.height + _margins
color: palette.windowShade
Column {
id: sliderColumn
anchors.margins: _margins
anchors.left: parent.left
anchors.right: parent.right
anchors.top: sliderRect.top
property alias sliderValue: slider.value
@ -132,11 +133,11 @@ QGCView { @@ -132,11 +133,11 @@ QGCView {
fact.value = value
}
}
}
} // Slider
} // Column
} // Rectangle
} // Repeater
} // Column
} // Rectangle
} // QGCFlickable
} // QGCViewPanel
} // QGCView

1
src/comm/PX4MockLink.params

@ -282,6 +282,7 @@ @@ -282,6 +282,7 @@
1 50 MPC_MANTHR_MIN 0.080 9
1 50 MPC_THR_MAX 1 9
1 50 MPC_THR_MIN 0.1 9
1 50 MPC_THR_HOVER 0.5 9
1 50 MPC_TILTMAX_AIR 45 9
1 50 MPC_TILTMAX_LND 15 9
1 50 MPC_XY_FF 0.5 9

Loading…
Cancel
Save