From 479d8de26614ca33153e517a7f0ab6c84985750f Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Tue, 27 Mar 2018 10:46:43 -0700 Subject: [PATCH] Allow type coercion for FW_ARSP_MODE param --- src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml | 2 +- src/AutoPilotPlugins/PX4/SensorsSetup.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml b/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml index 4670bbe3d..3dcb546be 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml +++ b/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml @@ -25,7 +25,7 @@ FactPanel { property Fact airspeedDisabledFact: controller.getParameterFact(-1, "FW_ARSP_MODE") property Fact airspeedBreakerFact: controller.getParameterFact(-1, "CBRK_AIRSPD_CHK") - property bool _airspeedVisible: airspeedDisabledFact.value === false && airspeedBreakerFact.value !== 162128 + property bool _airspeedVisible: airspeedDisabledFact.value == 0 && airspeedBreakerFact.value !== 162128 property bool _airspeedCalRequired: _airspeedVisible && dpressOffFact.value === 0 Column { diff --git a/src/AutoPilotPlugins/PX4/SensorsSetup.qml b/src/AutoPilotPlugins/PX4/SensorsSetup.qml index fdbca1757..28bb18b67 100644 --- a/src/AutoPilotPlugins/PX4/SensorsSetup.qml +++ b/src/AutoPilotPlugins/PX4/SensorsSetup.qml @@ -410,7 +410,7 @@ Item { width: _buttonWidth text: qsTr("Airspeed") visible: (controller.vehicle.fixedWing || controller.vehicle.vtol) && - controller.getParameterFact(-1, "FW_ARSP_MODE").value === false && + controller.getParameterFact(-1, "FW_ARSP_MODE").value == 0 && controller.getParameterFact(-1, "CBRK_AIRSPD_CHK").value !== 162128 && QGroundControl.corePlugin.options.showSensorCalibrationAirspeed && showSensorCalibrationAirspeed -- 2.22.0