RadioComponentSummary.qml 1.91 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: roll; text: "Roll:" }
        Text {
            horizontalAlignment: Text.AlignRight
            width: parent.width - roll.contentWidth
            text: autopilot.parameters["RC_MAP_ROLL"].value == 0 ? "Setup required" : autopilot.parameters["RC_MAP_ROLL"].value
        }
    }

    Row {
        width: parent.width

        Text { id: pitch; text: "Pitch:" }
        Text {
            horizontalAlignment: Text.AlignRight
            width: parent.width - pitch.contentWidth
            text: autopilot.parameters["RC_MAP_PITCH"].value == 0 ? "Setup required" : autopilot.parameters["RC_MAP_PITCH"].value
        }
    }

    Row {
        width: parent.width

        Text { id: yaw; text: "Yaw:" }
        Text {
            horizontalAlignment: Text.AlignRight
            width: parent.width - yaw.contentWidth
            text: autopilot.parameters["RC_MAP_YAW"].value == 0 ? "Setup required" : autopilot.parameters["RC_MAP_YAW"].value
        }
    }

    Row {
        width: parent.width

        Text { id: throttle; text: "Throttle:" }
        Text {
            horizontalAlignment: Text.AlignRight
            width: parent.width - throttle.contentWidth
            text: autopilot.parameters["RC_MAP_THROTTLE"].value == 0 ? "Setup required" : autopilot.parameters["RC_MAP_THROTTLE"].value
        }
    }

    Row {
        width: parent.width

        Text { id: mode; text: "Mode switch:" }
        Text {
            horizontalAlignment: Text.AlignRight
            width: parent.width - mode.contentWidth
            text: autopilot.parameters["RC_MAP_MODE_SW"].value == 0 ? "Setup required" : autopilot.parameters["RC_MAP_MODE_SW"].value
        }
    }
}