SensorsComponentSummaryFixedWing.qml 1.36 KB
Newer Older
1 2 3 4
import QtQuick 2.2
import QtQuick.Controls 1.2

import QGroundControl.FactSystem 1.0
5
import QGroundControl.FactControls 1.0
6 7 8 9 10 11
import QGroundControl.Controls 1.0

/*
    IMPORTANT NOTE: Any changes made here must also be made to SensorsComponentSummary.qml
*/

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
FactPanel {
    anchors.fill: parent

    Fact { id: mag0IdFact;      name: "CAL_MAG0_ID";    onFactMissing: showMissingFactOverlay(name) }
    Fact { id: gyro0IdFact;     name: "CAL_GYRO0_ID";   onFactMissing: showMissingFactOverlay(name) }
    Fact { id: accel0IdFact;    name: "CAL_ACC0_ID";    onFactMissing: showMissingFactOverlay(name) }
    Fact { id: dPressOffFact;   name: "SENS_DPRES_OFF"; onFactMissing: showMissingFactOverlay(name) }

    Column {
        anchors.fill:       parent
        anchors.margins:    8

        VehicleSummaryRow {
            labelText: "Compass:"
            valueText: mag0IdFact.value  == 0 ? "Setup required" : "Ready"
        }

        VehicleSummaryRow {
            labelText: "Gyro:"
            valueText: gyro0IdFact.value  == 0 ? "Setup required" : "Ready"
        }

        VehicleSummaryRow {
            labelText: "Accelerometer:"
            valueText: accel0IdFact.value  == 0 ? "Setup required" : "Ready"
        }

        VehicleSummaryRow {
            labelText: "Airspeed:"
            valueText: dPressOffFact.value  == 0 ? "Setup required" : "Ready"
        }
43 44
    }
}