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

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

    QGCPalette { id: qgcPal; colorGroupEnabled: enabled }
18
    APMSensorsComponentController { id: controller; factPanel: panel }
Don Gagne's avatar
Don Gagne committed
19

20 21
    property bool accelCalNeeded:   controller.accelSetupNeeded
    property bool compassCalNeeded: controller.compassSetupNeeded
Don Gagne's avatar
Don Gagne committed
22

Don Gagne's avatar
Don Gagne committed
23 24 25 26 27
    Grid {
        id:         grid
        rows:       2
        columns:    2
        spacing:    ScreenTools.defaultFontPixelWidth / 2
Don Gagne's avatar
Don Gagne committed
28

Don Gagne's avatar
Don Gagne committed
29 30
        QGCLabel { text: "Compass:" }
        QGCLabel { text: compassCalNeeded ? "Setup required" : "Ready" }
Don Gagne's avatar
Don Gagne committed
31

Don Gagne's avatar
Don Gagne committed
32 33
        QGCLabel { text: "Accelerometer:" }
        QGCLabel { text: accelCalNeeded ? "Setup required" : "Ready" }
Don Gagne's avatar
Don Gagne committed
34 35
    }
}