From b073e9fec6486bde4c7877d3d15bf2b620fc0ef3 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 23 May 2016 14:09:06 -0700 Subject: [PATCH] Handle airspeed circuit breaker correctly Also pull fixedWing directly from Vehicle --- src/AutoPilotPlugins/PX4/SafetyComponent.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AutoPilotPlugins/PX4/SafetyComponent.qml b/src/AutoPilotPlugins/PX4/SafetyComponent.qml index 6fe216796..58e79135a 100644 --- a/src/AutoPilotPlugins/PX4/SafetyComponent.qml +++ b/src/AutoPilotPlugins/PX4/SafetyComponent.qml @@ -100,7 +100,7 @@ QGCView { spacing: _margins * 0.5 anchors.verticalCenter: parent.verticalCenter Row { - visible: !controller.fixedWing + visible: !controller.vehicle.fixedWing QGCLabel { anchors.baseline: lowBattCombo.baseline width: _middleRowWidth @@ -364,7 +364,7 @@ QGCView { sourceSize.width: width mipmap: true fillMode: Image.PreserveAspectFit - source: controller.fixedWing ? "/qmlimages/ReturnToHomeAltitude.svg" : "/qmlimages/ReturnToHomeAltitudeCopter.svg" + source: controller.vehicle.fixedWing ? "/qmlimages/ReturnToHomeAltitude.svg" : "/qmlimages/ReturnToHomeAltitudeCopter.svg" anchors.verticalCenter: parent.verticalCenter } Item { width: _margins * 0.5; height: 1; } @@ -479,7 +479,7 @@ QGCView { sourceSize.width: width mipmap: true fillMode: Image.PreserveAspectFit - source: controller.fixedWing ? "/qmlimages/LandMode.svg" : "/qmlimages/LandModeCopter.svg" + source: controller.vehicle.fixedWing ? "/qmlimages/LandMode.svg" : "/qmlimages/LandModeCopter.svg" anchors.verticalCenter: parent.verticalCenter } Item { -- 2.22.0