AirframeComponentSummary.qml 922 Bytes
Newer Older
1 2 3
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
4

5
import QGroundControl.FactSystem 1.0
6
import QGroundControl.FactControls 1.0
7
import QGroundControl.Controls 1.0
8
import QGroundControl.Controllers 1.0
9 10

Column {
11 12 13 14 15
    Fact { id: sysIdFact;           name: "MAV_SYS_ID" }
    Fact { id: sysAutoStartFact;    name: "SYS_AUTOSTART" }

    property bool autoStartSet: sysAutoStartFact.value != 0

16 17 18
    anchors.fill: parent
    anchors.margins: 8

19 20
    AirframeComponentController { id: controller }

21 22 23
    VehicleSummaryRow {
        labelText: "System ID:"
        valueText: sysIdFact.valueString
24 25
    }

26 27 28
    VehicleSummaryRow {
        labelText: "Airframe type:"
        valueText: autoStartSet ? controller.currentAirframeType : "Setup required"
29 30
    }

31 32 33
    VehicleSummaryRow {
        labelText: "Vehicle:"
        valueText: autoStartSet ? controller.currentVehicleName : "Setup required"
34 35
    }
}