AirframeComponentSummary.qml 1.37 KB
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 11 12 13

Column {
    anchors.fill: parent
    anchors.margins: 8

14 15
    AirframeComponentController { id: controller }

16 17 18
    Row {
        width: parent.width

19
        QGCLabel { id: systemId; text: "System ID:" }
20
        FactLabel {
21 22
            horizontalAlignment: Text.AlignRight
            width: parent.width - systemId.contentWidth
23
            fact: Fact { name: "MAV_SYS_ID" }
24 25 26 27 28 29
        }
    }

    Row {
        width: parent.width

30 31 32 33 34 35 36 37 38 39 40 41 42
        QGCLabel { id: airframeType; text: "Airframe type:" }
        QGCLabel {
            property Fact fact: Fact { name: "SYS_AUTOSTART" }
            horizontalAlignment: Text.AlignRight
            width: parent.width - airframeType.contentWidth
            text: fact.value == 0 ? "Setup required" : controller.currentAirframeType
        }
    }

    Row {
        width: parent.width

        QGCLabel { id: vehicle; text: "Vehicle:" }
43
        QGCLabel {
44
            property Fact fact: Fact { name: "SYS_AUTOSTART" }
45
            horizontalAlignment: Text.AlignRight
46 47
            width: parent.width - vehicle.contentWidth
            text: fact.value == 0 ? "Setup required" : controller.currentVehicleName
48 49 50
        }
    }
}