APMCameraComponentSummary.qml 1.4 KB
Newer Older
Don Gagne's avatar
Don Gagne committed
1 2 3
import QtQuick          2.5
import QtQuick.Controls 1.2

Don Gagne's avatar
Don Gagne committed
4 5 6 7 8 9
import QGroundControl.FactSystem    1.0
import QGroundControl.FactControls  1.0
import QGroundControl.Controls      1.0
import QGroundControl.Controllers   1.0
import QGroundControl.Palette       1.0
import QGroundControl.ScreenTools   1.0
Don Gagne's avatar
Don Gagne committed
10 11

FactPanel {
Don Gagne's avatar
Don Gagne committed
12 13 14 15
    id:     panel
    width:  grid.width
    height: grid.height
    color:  qgcPal.windowShade
Don Gagne's avatar
Don Gagne committed
16 17 18 19 20 21 22 23 24

    QGCPalette { id: qgcPal; colorGroupEnabled: enabled }
    FactPanelController { id: controller; factPanel: panel }

    property Fact _mountRCInTilt:   controller.getParameterFact(-1, "MNT_RC_IN_TILT")
    property Fact _mountRCInRoll:   controller.getParameterFact(-1, "MNT_RC_IN_ROLL")
    property Fact _mountRCInPan:    controller.getParameterFact(-1, "MNT_RC_IN_PAN")
    property Fact _mountType:       controller.getParameterFact(-1, "MNT_TYPE")

Don Gagne's avatar
Don Gagne committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
    Grid {
        id:         grid
        rows:       4
        columns:    2
        spacing:    ScreenTools.defaultFontPixelWidth / 2

        QGCLabel { text: "Gimbal type:" }
        QGCLabel { text:  _mountType.enumStringValue }

        QGCLabel { text: "Tilt input channel:" }
        QGCLabel { text:  _mountRCInTilt.enumStringValue }

        QGCLabel { text: "Pan input channel:" }
        QGCLabel { text:  _mountRCInPan.enumStringValue }

        QGCLabel { text: "Roll input channel:" }
        QGCLabel { text:  _mountRCInRoll.enumStringValue }
Don Gagne's avatar
Don Gagne committed
42 43
    }
}