Browse Source

FlyViewVideo.qml, OnScreenGimbalController.qml: fix conflict with tracking feature after rebase

QGC4.4
davidsastresas 11 months ago committed by Julian Oes
parent
commit
ec2273666f
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 1
      src/FlightDisplay/FlyViewVideo.qml
  2. 3
      src/FlightDisplay/OnScreenGimbalController.qml

1
src/FlightDisplay/FlyViewVideo.qml

@ -93,6 +93,7 @@ Item { @@ -93,6 +93,7 @@ Item {
anchors.fill: parent
screenX: flyViewVideoMouseArea.mouseX
screenY: flyViewVideoMouseArea.mouseY
cameraTrackingEnabled: videoStreaming._camera && videoStreaming._camera.trackingEnabled
}
MouseArea {

3
src/FlightDisplay/OnScreenGimbalController.qml

@ -29,7 +29,8 @@ Item { @@ -29,7 +29,8 @@ Item {
property var activeGimbal: gimbalController ? gimbalController.activeGimbal : undefined
property bool gimbalAvailable: activeGimbal != undefined
property var gimbalControllerSettings: QGroundControl.settingsManager.gimbalControllerSettings
property bool shouldProcessClicks: gimbalControllerSettings.EnableOnScreenControl.value && activeGimbal ? true : false
property bool cameraTrackingEnabled: false // Used to ignore clicks when camera tracking operation is active, otherwise it would collide with these gimbal controls
property bool shouldProcessClicks: gimbalControllerSettings.EnableOnScreenControl.value && activeGimbal && !cameraTrackingEnabled ? true : false
function clickControl() {
if (!shouldProcessClicks) {

Loading…
Cancel
Save