SafetyComponentSummary.qml 1.86 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.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: rtlMinAlt; text: "RTL min alt:" }
        QGCLabel {
17 18 19 20 21 22 23 24 25
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rtlMinAlt.contentWidth;
            text: autopilot.parameters["RTL_RETURN_ALT"].valueString
        }
    }

    Row {
        width: parent.width

26 27
        QGCLabel { id: rtlHomeAlt; text: "RTL home alt:" }
        QGCLabel {
28 29 30 31 32 33 34 35 36
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rtlHomeAlt.contentWidth;
            text: autopilot.parameters["RTL_DESCEND_ALT"].valueString
        }
    }

    Row {
        width: parent.width

37 38
        QGCLabel { id: rtlLoiter; text: "RTL loiter delay:" }
        QGCLabel {
39 40 41 42 43 44 45 46 47
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rtlLoiter.contentWidth;
            text: autopilot.parameters["RTL_LAND_DELAY"].value < 0 ? "Disabled" : autopilot.parameters["RTL_LAND_DELAY"].valueString
        }
    }

    Row {
        width: parent.width

48 49
        QGCLabel { id: commLoss; text: "Telemetry loss RTL:" }
        QGCLabel {
50 51
            horizontalAlignment: Text.AlignRight;
            width: parent.width - commLoss.contentWidth;
52
            text: autopilot.parameters["COM_DL_LOSS_EN"].value != 1 ? "Disabled" : autopilot.parameters["COM_DL_LOSS_T"].valueString
53 54 55 56 57 58
        }
    }

    Row {
        width: parent.width

59 60
        QGCLabel { id: rcLoss; text: "RC loss RTL (seconds):" }
        QGCLabel {
61 62 63 64 65 66
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rcLoss.contentWidth;
            text: autopilot.parameters["COM_RC_LOSS_T"].valueString
        }
    }
}