diff --git a/src/AutoPilotPlugins/PX4/SensorsComponent.h b/src/AutoPilotPlugins/PX4/SensorsComponent.h index 87f8e4d101075f7b730fbbbe5f0c460e20e21b3b..00b0d6e97f2a6c34649f7087d0af161bcd92216a 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponent.h +++ b/src/AutoPilotPlugins/PX4/SensorsComponent.h @@ -55,7 +55,6 @@ public: private: const QString _name; QVariantList _summaryItems; - bool _paramsV1; }; #endif diff --git a/src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml b/src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml index 2c1f31420f2e88c3e650709b3c62fd163b6f157c..5148b38c8fdd7955b40f5cd5bac57fa568d21bd3 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml +++ b/src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml @@ -20,8 +20,7 @@ Column { QGCLabel { horizontalAlignment: Text.AlignRight; width: parent.width - compass.contentWidth; - property bool setupRequiredValue: autopilot.parameters["SENS_MAG_XOFF"] ? autopilot.parameters["SENS_MAG_XOFF"].value : autopilot.parameters["CAL_MAG0_ID"].value - text: setupRequiredValue == 0 ? "Setup required" : "Ready" + text: autopilot.parameters["CAL_MAG0_ID"].value == 0 ? "Setup required" : "Ready" } } @@ -32,8 +31,7 @@ Column { QGCLabel { horizontalAlignment: Text.AlignRight; width: parent.width - gyro.contentWidth; - property bool setupRequiredValue: autopilot.parameters["SENS_GYRO_XOFF"] ? autopilot.parameters["SENS_GYRO_XOFF"].value : autopilot.parameters["CAL_GYRO0_ID"].value - text: setupRequiredValue == 0 ? "Setup required" : "Ready" + text: autopilot.parameters["CAL_GYRO0_ID"].value == 0 ? "Setup required" : "Ready" } } @@ -44,8 +42,7 @@ Column { QGCLabel { horizontalAlignment: Text.AlignRight; width: parent.width - accel.contentWidth; - property bool setupRequiredValue: autopilot.parameters["SENS_ACC_XOFF"] ? autopilot.parameters["SENS_ACC_XOFF"].value : autopilot.parameters["CAL_ACC0_ID"].value - text: setupRequiredValue == 0 ? "Setup required" : "Ready" + text: autopilot.parameters["CAL_ACC0_ID"].value == 0 ? "Setup required" : "Ready" } } } diff --git a/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml b/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml index 624e5e9f9506bf049f1e0292f31d5e597c62051c..77a6c53d05c268d139f35f6f3be3037aa45d695c 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml +++ b/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml @@ -20,8 +20,7 @@ Column { QGCLabel { horizontalAlignment: Text.AlignRight; width: parent.width - compass.contentWidth; - property bool setupRequiredValue: autopilot.parameters["SENS_MAG_XOFF"] ? autopilot.parameters["SENS_MAG_XOFF"].value : autopilot.parameters["CAL_MAG0_ID"].value - text: setupRequiredValue == 0 ? "Setup required" : "Ready" + text: autopilot.parameters["CAL_MAG0_ID"].value == 0 ? "Setup required" : "Ready" } } @@ -32,8 +31,7 @@ Column { QGCLabel { horizontalAlignment: Text.AlignRight; width: parent.width - gyro.contentWidth; - property bool setupRequiredValue: autopilot.parameters["SENS_GYRO_XOFF"] ? autopilot.parameters["SENS_GYRO_XOFF"].value : autopilot.parameters["CAL_GYRO0_ID"].value - text: setupRequiredValue == 0 ? "Setup required" : "Ready" + text: autopilot.parameters["CAL_GYRO0_ID"].value == 0 ? "Setup required" : "Ready" } } @@ -44,8 +42,7 @@ Column { QGCLabel { horizontalAlignment: Text.AlignRight; width: parent.width - accel.contentWidth; - property bool setupRequiredValue: autopilot.parameters["SENS_ACC_XOFF"] ? autopilot.parameters["SENS_ACC_XOFF"].value : autopilot.parameters["CAL_ACC0_ID"].value - text: setupRequiredValue == 0 ? "Setup required" : "Ready" + text: autopilot.parameters["CAL_ACC0_ID"].value == 0 ? "Setup required" : "Ready" } }