AirframeComponentSummary.qml 873 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.Controls 1.0
7 8 9 10 11 12 13 14

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

    Row {
        width: parent.width

15 16
        QGCLabel { id: systemId; text: "System ID:" }
        QGCLabel {
17 18 19 20 21 22 23 24 25
            horizontalAlignment: Text.AlignRight
            width: parent.width - systemId.contentWidth
            text: autopilot.parameters["MAV_SYS_ID"].value
        }
    }

    Row {
        width: parent.width

26 27
        QGCLabel { id: airframe; text: "Airframe:" }
        QGCLabel {
28 29 30 31 32 33
            horizontalAlignment: Text.AlignRight
            width: parent.width - airframe.contentWidth
            text: autopilot.parameters["SYS_AUTOSTART"].value == 0 ? "Setup required" : autopilot.parameters["SYS_AUTOSTART"].value
        }
    }
}