SensorsComponentSummaryFixedWing.qml 1.06 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2

import QGroundControl.FactSystem 1.0
import QGroundControl.Controls 1.0

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

Column {
13 14 15 16
    Fact { id: mag0IdFact;      name: "CAL_MAG0_ID" }
    Fact { id: gyro0IdFact;     name: "CAL_GYRO0_ID" }
    Fact { id: accel0IdFact;    name: "CAL_ACC0_ID" }
    Fact { id: dPressOffFact;   name: "SENS_DPRES_OFF" }
17

18 19 20 21 22 23
    anchors.fill:       parent
    anchors.margins:    8

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

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

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

Don Gagne's avatar
Don Gagne committed
36
    VehicleSummaryRow {
37 38
        labelText: "Airspeed:"
        valueText: dPressOffFact.value  == 0 ? "Setup required" : "Ready"
39 40
    }
}