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

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

    Row {
        width: parent.width

16
        QGCLabel { id: rtlMinAlt; text: "RTL min alt:" }
17 18
        FactLabel {
            fact: Fact { name: "RTL_RETURN_ALT" }
19 20 21 22 23 24 25 26
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rtlMinAlt.contentWidth;
        }
    }

    Row {
        width: parent.width

27
        QGCLabel { id: rtlHomeAlt; text: "RTL home alt:" }
28 29
        FactLabel {
            fact: Fact { name: "RTL_DESCEND_ALT" }
30 31 32 33 34 35 36 37
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rtlHomeAlt.contentWidth;
        }
    }

    Row {
        width: parent.width

38 39
        QGCLabel { id: rtlLoiter; text: "RTL loiter delay:" }
        QGCLabel {
40
            property Fact fact: Fact { name: "RTL_LAND_DELAY" }
41 42
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rtlLoiter.contentWidth;
43
            text: fact.value < 0 ? "Disabled" : fact.valueString
44 45 46 47 48 49
        }
    }

    Row {
        width: parent.width

50 51
        QGCLabel { id: commLoss; text: "Telemetry loss RTL:" }
        QGCLabel {
52
            property Fact fact: Fact { name: "COM_DL_LOSS_EN" }
53 54
            horizontalAlignment: Text.AlignRight;
            width: parent.width - commLoss.contentWidth;
55
            text: fact.value != 1 ? "Disabled" : fact.valueString
56 57 58 59 60 61
        }
    }

    Row {
        width: parent.width

62
        QGCLabel { id: rcLoss; text: "RC loss RTL (seconds):" }
63 64
        FactLabel {
            fact: Fact { name: "COM_RC_LOSS_T" }
65 66 67 68 69
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rcLoss.contentWidth;
        }
    }
}