APMFlightModesComponentSummary.qml 1.68 KB
Newer Older
Don Gagne's avatar
Don Gagne committed
1 2 3 4 5 6
import QtQuick          2.5
import QtQuick.Controls 1.2

import QGroundControl.FactSystem    1.0
import QGroundControl.FactControls  1.0
import QGroundControl.Controls      1.0
Don Gagne's avatar
Don Gagne committed
7
import QGroundControl.Controllers   1.0
Don Gagne's avatar
Don Gagne committed
8
import QGroundControl.Palette       1.0
Don Gagne's avatar
Don Gagne committed
9
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 25 26

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

    property Fact flightMode1: controller.getParameterFact(-1, "FLTMODE1")
    property Fact flightMode2: controller.getParameterFact(-1, "FLTMODE2")
    property Fact flightMode3: controller.getParameterFact(-1, "FLTMODE3")
    property Fact flightMode4: controller.getParameterFact(-1, "FLTMODE4")
    property Fact flightMode5: controller.getParameterFact(-1, "FLTMODE5")
    property Fact flightMode6: controller.getParameterFact(-1, "FLTMODE6")

Don Gagne's avatar
Don Gagne committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
    Grid {
        id:         grid
        rows:       6
        columns:    2
        spacing:    ScreenTools.defaultFontPixelWidth / 2

        QGCLabel { text: "Flight Mode 1:" }
        QGCLabel { text: flightMode1.enumStringValue }

        QGCLabel { text: "Flight Mode 2:" }
        QGCLabel { text: flightMode2.enumStringValue }

        QGCLabel { text: "Flight Mode 3:" }
        QGCLabel { text: flightMode3.enumStringValue }

        QGCLabel { text: "Flight Mode 4:" }
        QGCLabel { text: flightMode4.enumStringValue }

        QGCLabel { text: "Flight Mode 5:" }
        QGCLabel { text: flightMode5.enumStringValue }

        QGCLabel { text: "Flight Mode 6:" }
        QGCLabel { text: flightMode6.enumStringValue }
Don Gagne's avatar
Don Gagne committed
50 51
    }
}