RadioComponentSummary.qml 1.58 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

Column {
9 10 11 12 13 14 15
    Fact { id: mapRollFact;     name: "RC_MAP_ROLL" }
    Fact { id: mapPitchFact;    name: "RC_MAP_PITCH" }
    Fact { id: mapYawFact;      name: "RC_MAP_YAW" }
    Fact { id: mapThrottleFact; name: "RC_MAP_THROTTLE" }
    Fact { id: mapFlapsFact;    name: "RC_MAP_FLAPS" }
    Fact { id: mapAux1Fact;     name: "RC_MAP_AUX1" }
    Fact { id: mapAux2Fact;     name: "RC_MAP_AUX2" }
16

17 18
    anchors.fill:       parent
    anchors.margins:    8
19

20 21 22
    VehicleSummaryRow {
        labelText: "Roll:"
        valueText: mapRollFact.value == 0 ? "Setup required" : mapRollFact.valueString
23 24
    }

25 26 27
    VehicleSummaryRow {
        labelText: "Pitch:"
        valueText: mapPitchFact.value == 0 ? "Setup required" : mapPitchFact.valueString
28 29
    }

30 31 32
    VehicleSummaryRow {
        labelText: "Yaw:"
        valueText: mapYawFact.value == 0 ? "Setup required" : mapYawFact.valueString
33 34
    }

35 36 37
    VehicleSummaryRow {
        labelText: "Throttle:"
        valueText: mapThrottleFact.value == 0 ? "Setup required" : mapThrottleFact.valueString
Don Gagne's avatar
Don Gagne committed
38 39
    }

40 41 42
    VehicleSummaryRow {
        labelText: "Flaps:"
        valueText: mapFlapsFact.value == 0 ? "Disabled" : mapFlapsFact.valueString
Don Gagne's avatar
Don Gagne committed
43 44
    }

45 46 47
    VehicleSummaryRow {
        labelText: "Aux1:"
        valueText: mapAux1Fact.value == 0 ? "Disabled" : mapAux1Fact.valueString
48
    }
Don Gagne's avatar
Don Gagne committed
49

50 51 52
    VehicleSummaryRow {
        labelText: "Aux2:"
        valueText: mapAux2Fact.value == 0 ? "Disabled" : mapAux2Fact.valueString
53 54
    }
}