From 6f0516bde2db95409fbe33da5586049442d65151 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Thu, 6 Jul 2017 13:56:39 -0700 Subject: [PATCH] Option to take images in turnarounds --- src/MissionManager/Survey.SettingsGroup.json | 2 +- src/PlanView/SurveyItemEditor.qml | 23 +++++++++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/MissionManager/Survey.SettingsGroup.json b/src/MissionManager/Survey.SettingsGroup.json index 5d4ef9c2d..e28cb354a 100644 --- a/src/MissionManager/Survey.SettingsGroup.json +++ b/src/MissionManager/Survey.SettingsGroup.json @@ -132,7 +132,7 @@ "name": "CameraTriggerInTurnaround", "shortDescription": "Camera continues taking images in turnarounds.", "type": "bool", - "defaultValue": false + "defaultValue": true }, { "name": "HoverAndCapture", diff --git a/src/PlanView/SurveyItemEditor.qml b/src/PlanView/SurveyItemEditor.qml index e5fed5d01..8c688e450 100644 --- a/src/PlanView/SurveyItemEditor.qml +++ b/src/PlanView/SurveyItemEditor.qml @@ -252,12 +252,6 @@ Rectangle { enabled: cameraTriggerDistanceCheckBox.checked } } - - FactCheckBox { - text: qsTr("Hover and capture image") - fact: missionItem.hoverAndCapture - visible: missionItem.hoverAndCaptureAllowed - } } // Camera based grid ui @@ -387,6 +381,23 @@ Rectangle { } } + FactCheckBox { + text: qsTr("Hover and capture image") + fact: missionItem.hoverAndCapture + visible: missionItem.hoverAndCaptureAllowed + onClicked: { + if (checked) { + missionItem.cameraTriggerInTurnaround.rawValue = false + } + } + } + + FactCheckBox { + text: qsTr("Take images in turnarounds") + fact: missionItem.cameraTriggerInTurnaround + enabled: !missionItem.hoverAndCapture.rawValue + } + SectionHeader { id: gridHeader text: qsTr("Grid") -- 2.22.0