SensorsComponentSummary.qml 888 Bytes
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
/*
Don Gagne's avatar
Don Gagne committed
9
    IMPORTANT NOTE: Any changes made here must also be made to SensorsComponentSummary.qml
10 11
*/

12
Column {
Don Gagne's avatar
Don Gagne committed
13 14 15
    Fact { id: mag0IdFact;      name: "CAL_MAG0_ID" }
    Fact { id: gyro0IdFact;     name: "CAL_GYRO0_ID" }
    Fact { id: accel0IdFact;    name: "CAL_ACC0_ID" }
16

Don Gagne's avatar
Don Gagne committed
17 18
    anchors.fill:       parent
    anchors.margins:    8
19

Don Gagne's avatar
Don Gagne committed
20 21 22
    VehicleSummaryRow {
        labelText: "Compass:"
        valueText: mag0IdFact.value  == 0 ? "Setup required" : "Ready"
23 24
    }

Don Gagne's avatar
Don Gagne committed
25 26 27
    VehicleSummaryRow {
        labelText: "Gyro:"
        valueText: gyro0IdFact.value  == 0 ? "Setup required" : "Ready"
28
    }
29

Don Gagne's avatar
Don Gagne committed
30 31 32
    VehicleSummaryRow {
        labelText: "Accelerometer:"
        valueText: accel0IdFact.value  == 0 ? "Setup required" : "Ready"
33 34
    }
}