|
|
@ -275,21 +275,29 @@ QGCView { |
|
|
|
} |
|
|
|
} |
|
|
|
} // Rectangle - Basic tuning |
|
|
|
} // Rectangle - Basic tuning |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flow { |
|
|
|
|
|
|
|
id: flowLayout |
|
|
|
|
|
|
|
anchors.topMargin: _margins / 2 |
|
|
|
|
|
|
|
width: panel.width // parent.width doesn't work here for some reason! |
|
|
|
|
|
|
|
anchors.top: basicTuningRect.bottom |
|
|
|
|
|
|
|
spacing: _margins |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
|
|
|
height: autoTuneLabel.height + autoTuneRect.height |
|
|
|
|
|
|
|
width: autoTuneRect.width |
|
|
|
|
|
|
|
color: palette.window |
|
|
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
QGCLabel { |
|
|
|
id: autoTuneLabel |
|
|
|
id: autoTuneLabel |
|
|
|
anchors.topMargin: _margins |
|
|
|
|
|
|
|
anchors.top: basicTuningRect.bottom |
|
|
|
|
|
|
|
text: qsTr("AutoTune") |
|
|
|
text: qsTr("AutoTune") |
|
|
|
font.family: ScreenTools.demiboldFontFamily |
|
|
|
font.family: ScreenTools.demiboldFontFamily |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
Rectangle { |
|
|
|
id: autoTuneRect |
|
|
|
id: autoTuneRect |
|
|
|
anchors.topMargin: _margins / 2 |
|
|
|
|
|
|
|
anchors.left: parent.left |
|
|
|
|
|
|
|
anchors.top: autoTuneLabel.bottom |
|
|
|
|
|
|
|
width: autoTuneColumn.x + autoTuneColumn.width + _margins |
|
|
|
width: autoTuneColumn.x + autoTuneColumn.width + _margins |
|
|
|
height: autoTuneColumn.y + autoTuneColumn.height + _margins |
|
|
|
height: autoTuneColumn.y + autoTuneColumn.height + _margins |
|
|
|
|
|
|
|
anchors.top: autoTuneLabel.bottom |
|
|
|
color: palette.windowShade |
|
|
|
color: palette.windowShade |
|
|
|
|
|
|
|
|
|
|
|
Column { |
|
|
|
Column { |
|
|
@ -332,6 +340,83 @@ QGCView { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} // Rectangle - AutoTune |
|
|
|
} // Rectangle - AutoTune |
|
|
|
|
|
|
|
} // Rectangle - AutoTuneWrap |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
|
|
|
height: inFlightTuneLabel.height + channel6TuningOption.height |
|
|
|
|
|
|
|
width: channel6TuningOption.width |
|
|
|
|
|
|
|
color: palette.window |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
|
|
|
id: inFlightTuneLabel |
|
|
|
|
|
|
|
text: qsTr("In Flight Tuning") |
|
|
|
|
|
|
|
font.family: ScreenTools.demiboldFontFamily |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
|
|
|
id: channel6TuningOption |
|
|
|
|
|
|
|
width: channel6TuningOptColumn.width + (_margins * 2) |
|
|
|
|
|
|
|
height: channel6TuningOptColumn.height + ScreenTools.defaultFontPixelHeight |
|
|
|
|
|
|
|
anchors.top: inFlightTuneLabel.bottom |
|
|
|
|
|
|
|
color: qgcPal.windowShade |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Column { |
|
|
|
|
|
|
|
id: channel6TuningOptColumn |
|
|
|
|
|
|
|
anchors.margins: ScreenTools.defaultFontPixelWidth |
|
|
|
|
|
|
|
anchors.left: parent.left |
|
|
|
|
|
|
|
anchors.top: parent.top |
|
|
|
|
|
|
|
spacing: ScreenTools.defaultFontPixelHeight |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Row { |
|
|
|
|
|
|
|
spacing: ScreenTools.defaultFontPixelWidth |
|
|
|
|
|
|
|
property Fact nullFact: Fact { } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
|
|
|
anchors.baseline: optCombo.baseline |
|
|
|
|
|
|
|
text: qsTr("Channel Option 6 (Tuning):") |
|
|
|
|
|
|
|
//color: controller.channelOptionEnabled[modelData] ? "yellow" : qgcPal.text |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FactComboBox { |
|
|
|
|
|
|
|
id: optCombo |
|
|
|
|
|
|
|
width: ScreenTools.defaultFontPixelWidth * 15 |
|
|
|
|
|
|
|
fact: controller.getParameterFact(-1, "TUNE") |
|
|
|
|
|
|
|
indexModel: false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Row { |
|
|
|
|
|
|
|
spacing: ScreenTools.defaultFontPixelWidth |
|
|
|
|
|
|
|
property Fact nullFact: Fact { } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
|
|
|
anchors.baseline: tuneMinField.baseline |
|
|
|
|
|
|
|
text: qsTr("Min:") |
|
|
|
|
|
|
|
//color: controller.channelOptionEnabled[modelData] ? "yellow" : qgcPal.text |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FactTextField { |
|
|
|
|
|
|
|
id: tuneMinField |
|
|
|
|
|
|
|
validator: DoubleValidator {bottom: 0; top: 32767;} |
|
|
|
|
|
|
|
fact: controller.getParameterFact(-1, "TUNE_LOW") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
|
|
|
anchors.baseline: tuneMaxField.baseline |
|
|
|
|
|
|
|
text: qsTr("Max:") |
|
|
|
|
|
|
|
//color: controller.channelOptionEnabled[modelData] ? "yellow" : qgcPal.text |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FactTextField { |
|
|
|
|
|
|
|
id: tuneMaxField |
|
|
|
|
|
|
|
validator: DoubleValidator {bottom: 0; top: 32767;} |
|
|
|
|
|
|
|
fact: controller.getParameterFact(-1, "TUNE_HIGH") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} // Column - Channel 6 Tuning option |
|
|
|
|
|
|
|
} // Rectangle - Channel 6 Tuning options |
|
|
|
|
|
|
|
} // Rectangle - Channel 6 Tuning options wrap |
|
|
|
|
|
|
|
} // Flow - Tune |
|
|
|
} // QGCFlickable |
|
|
|
} // QGCFlickable |
|
|
|
} // QGCViewPanel |
|
|
|
} // QGCViewPanel |
|
|
|
} // QGCView |
|
|
|
} // QGCView |
|
|
|