Browse Source

Rework tuning UI

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

43
src/QmlControls/FactSliderPanel.qml

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

1
src/comm/PX4MockLink.params

@ -282,6 +282,7 @@
1 50 MPC_MANTHR_MIN 0.080 9 1 50 MPC_MANTHR_MIN 0.080 9
1 50 MPC_THR_MAX 1 9 1 50 MPC_THR_MAX 1 9
1 50 MPC_THR_MIN 0.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_AIR 45 9
1 50 MPC_TILTMAX_LND 15 9 1 50 MPC_TILTMAX_LND 15 9
1 50 MPC_XY_FF 0.5 9 1 50 MPC_XY_FF 0.5 9

Loading…
Cancel
Save