Commit acdcf6bb authored by Gus Grubba's avatar Gus Grubba

Clean up code used only on custom builds.

parent 6f41866c
......@@ -17,8 +17,6 @@ import QGroundControl.Controls 1.0
import QGroundControl.FlightDisplay 1.0
import QGroundControl.Vehicle 1.0
import CustomQuickInterface 1.0
Item {
property var model: listModel
PreFlightCheckModel {
......@@ -26,31 +24,6 @@ Item {
PreFlightCheckGroup {
name: qsTr("VTOL Initial Checks")
// Standard check list items (group 0) - Available from the start
Rectangle {
width: ScreenTools.defaultFontPixelWidth * 40
height: testFlight.height + ScreenTools.defaultFontPixelHeight
color: qgcPal.button
property bool passed: true
function reset() {
if(activeVehicle) {
CustomQuickInterface.testFlight = false
activeVehicle.checkListState = Vehicle.CheckListNotSetup
}
}
QGCCheckBox {
id: testFlight
text: "Test Flight"
enabled: !CustomQuickInterface.debugBuild
checked: CustomQuickInterface.testFlight
anchors.centerIn: parent
onClicked: CustomQuickInterface.testFlight = checked
Component.onCompleted: {
CustomQuickInterface.testFlight = false
}
}
}
PreFlightCheckButton {
name: qsTr("Hardware")
manualText: qsTr("Props mounted? Wings secured? Tail secured?")
......
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