Commit 981fbd48 authored by Lorenz Meier's avatar Lorenz Meier

Do not let users assign motors without enabling the bus first

parent 9c37ca83
......@@ -265,11 +265,11 @@ QGCView {
Rectangle {
width: parent.width
height: uavCanEscCalColumn.height + ScreenTools.defaultFontPixelHeight
height: uavCanConfigColumn.height + ScreenTools.defaultFontPixelHeight
color: palette.windowShade
Column {
id: uavCanEscCalColumn
id: uavCanConfigColumn
anchors.margins: ScreenTools.defaultFontPixelHeight / 2
anchors.left: parent.left
anchors.top: parent.top
......@@ -283,6 +283,26 @@ QGCView {
uncheckedValue: 0
text: "Enable UAVCAN as the default MAIN output bus (requires restart)"
}
}
}
QGCLabel {
text: "UAVCAN Motor Index and Direction Assignment"
font.pixelSize: ScreenTools.mediumFontPixelSize
}
Rectangle {
width: parent.width
height: uavCanEscCalColumn.height + ScreenTools.defaultFontPixelHeight
color: palette.windowShade
enabled: uavcanEnabledCheckBox.checked
Column {
id: uavCanEscCalColumn
anchors.margins: ScreenTools.defaultFontPixelHeight / 2
anchors.left: parent.left
anchors.top: parent.top
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel {
color: palette.warningText
......
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