AirframeComponentSummary.qml 897 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 9 10 11 12 13 14 15

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

    Row {
        width: parent.width

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

    Row {
        width: parent.width

27 28
        QGCLabel { id: airframe; text: "Airframe:" }
        QGCLabel {
29
            property Fact fact: Fact { name: "SYS_AUTOSTART" }
30 31
            horizontalAlignment: Text.AlignRight
            width: parent.width - airframe.contentWidth
32
            text: fact.value == 0 ? "Setup required" : fact.value
33 34 35
        }
    }
}