SafetyComponentSummary.qml 1.82 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
import QGroundControl.FactSystem 1.0
import QGroundControl.FactControls 1.0

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

    Row {
        width: parent.width

        Text { id: rtlMinAlt; text: "RTL min alt:" }
        Text {
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rtlMinAlt.contentWidth;
            text: autopilot.parameters["RTL_RETURN_ALT"].valueString
        }
    }

    Row {
        width: parent.width

        Text { id: rtlHomeAlt; text: "RTL home alt:" }
        Text {
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rtlHomeAlt.contentWidth;
            text: autopilot.parameters["RTL_DESCEND_ALT"].valueString
        }
    }

    Row {
        width: parent.width

        Text { id: rtlLoiter; text: "RTL loiter delay:" }
        Text {
            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

        Text { id: commLoss; text: "Telemetry loss RTL:" }
        Text {
            horizontalAlignment: Text.AlignRight;
            width: parent.width - commLoss.contentWidth;
            text: autopilot.parameters["COM_DL_LOSS_EN"].value != 1 ? "Disabled" : autopilot.parameters["NAV_DLL_N"].valueString
        }
    }

    Row {
        width: parent.width

        Text { id: rcLoss; text: "RC loss RTL (seconds):" }
        Text {
            horizontalAlignment: Text.AlignRight;
            width: parent.width - rcLoss.contentWidth;
            text: autopilot.parameters["COM_RC_LOSS_T"].valueString
        }
    }
}