RadioComponentSummary.qml 2.6 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: roll; text: "Roll:" }
        QGCLabel {
17 18 19 20 21 22 23 24 25
            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

26 27
        QGCLabel { id: pitch; text: "Pitch:" }
        QGCLabel {
28 29 30 31 32 33 34 35 36
            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

37 38
        QGCLabel { id: yaw; text: "Yaw:" }
        QGCLabel {
39 40 41 42 43 44 45 46 47
            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

48 49
        QGCLabel { id: throttle; text: "Throttle:" }
        QGCLabel {
50 51 52 53 54 55 56 57 58
            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

Don Gagne's avatar
Don Gagne committed
59
        QGCLabel { id: flaps; text: "Flaps:" }
60
        QGCLabel {
61
            horizontalAlignment: Text.AlignRight
Don Gagne's avatar
Don Gagne committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
            width: parent.width - flaps.contentWidth
            text: autopilot.parameters["RC_MAP_FLAPS"].value == 0 ? "Disabled" : autopilot.parameters["RC_MAP_FLAPS"].value
        }
    }

    Row {
        width: parent.width

        QGCLabel { id: aux1; text: "Aux1:" }
        QGCLabel {
            horizontalAlignment: Text.AlignRight
            width: parent.width - aux1.contentWidth
            text: autopilot.parameters["RC_MAP_AUX1"].value == 0 ? "Disabled" : autopilot.parameters["RC_MAP_AUX1"].value
        }
    }

    Row {
        width: parent.width

        QGCLabel { id: aux2; text: "Aux2:" }
        QGCLabel {
            horizontalAlignment: Text.AlignRight
            width: parent.width - aux2.contentWidth
            text: autopilot.parameters["RC_MAP_AUX2"].value == 0 ? "Disabled" : autopilot.parameters["RC_MAP_AUX2"].value
86 87 88
        }
    }
}