@@ -374,15 +374,6 @@ Rectangle {
374374 onVisibleChanged: gridLayout .dynamicRows += visible ? 1 : - 1
375375 }
376376
377- // Mavlink Camera Protocol active settings
378- Repeater {
379- model: _camera .activeSettings
380-
381- QGCLabel {
382- text: _camera .getFact (modelData).shortDescription
383- }
384- }
385-
386377 QGCLabel {
387378 text: qsTr (" HDMI Input" )
388379 visible: QGroundControl .corePlugin .isHerelink
@@ -395,6 +386,15 @@ Rectangle {
395386 onVisibleChanged: gridLayout .dynamicRows += visible ? 1 : - 1
396387 }
397388
389+ // Mavlink Camera Protocol active settings
390+ Repeater {
391+ model: _camera .activeSettings
392+
393+ QGCLabel {
394+ text: _camera .getFact (modelData).shortDescription
395+ }
396+ }
397+
398398 QGCLabel {
399399 text: qsTr (" Photo Mode" )
400400 visible: _camera .capturesPhotos
@@ -468,6 +468,39 @@ Rectangle {
468468 onValueChanged: _camera .thermalOpacity = value
469469 }
470470
471+ Row {
472+ spacing: ScreenTools .defaultFontPixelWidth / 2
473+ visible: QGroundControl .corePlugin .isHerelink
474+
475+ QGCButton {
476+ text: qsTr (" HDMI 1" )
477+ enabled: QGroundControl .videoManager .videoStreamControl .cameraInfoReceived && ! QGroundControl .videoManager .videoStreamControl .settingInProgress && QGroundControl .videoManager .videoStreamControl .currentHdmiInput !== 0
478+ onClicked: {
479+ console .log (" HDMI 1 button clicked" )
480+ _videoStreamSettings .cameraId .rawValue = 0
481+ }
482+ }
483+
484+ QGCButton {
485+ text: qsTr (" HDMI 2" )
486+ enabled: QGroundControl .videoManager .videoStreamControl .cameraInfoReceived && ! QGroundControl .videoManager .videoStreamControl .settingInProgress && QGroundControl .videoManager .videoStreamControl .currentHdmiInput !== 1
487+ onClicked: {
488+ _videoStreamSettings .cameraId .rawValue = 1
489+ }
490+ }
491+ }
492+
493+ Row {
494+ spacing: ScreenTools .defaultFontPixelWidth / 2
495+ visible: QGroundControl .corePlugin .isHerelink
496+
497+ QGCComboBox {
498+ model: [ qsTr (" 720p" ), qsTr (" 1080p" ) ]
499+ currentIndex: _videoStreamSettings .resolution .rawValue
500+ onActivated : (index ) => { _videoStreamSettings .resolution .rawValue = index }
501+ }
502+ }
503+
471504 // Mavlink Camera Protocol active settings
472505 Repeater {
473506 model: _camera .activeSettings
@@ -523,39 +556,6 @@ Rectangle {
523556 }
524557 }
525558
526- Row {
527- spacing: ScreenTools .defaultFontPixelWidth / 2
528- visible: QGroundControl .corePlugin .isHerelink
529-
530- QGCButton {
531- text: qsTr (" HDMI 1" )
532- enabled: QGroundControl .videoManager .videoStreamControl .cameraInfoReceived && ! QGroundControl .videoManager .videoStreamControl .settingInProgress && QGroundControl .videoManager .videoStreamControl .currentHdmiInput !== 0
533- onClicked: {
534- console .log (" HDMI 1 button clicked" )
535- _videoStreamSettings .cameraId .rawValue = 0
536- }
537- }
538-
539- QGCButton {
540- text: qsTr (" HDMI 2" )
541- enabled: QGroundControl .videoManager .videoStreamControl .cameraInfoReceived && ! QGroundControl .videoManager .videoStreamControl .settingInProgress && QGroundControl .videoManager .videoStreamControl .currentHdmiInput !== 1
542- onClicked: {
543- _videoStreamSettings .cameraId .rawValue = 1
544- }
545- }
546- }
547-
548- Row {
549- spacing: ScreenTools .defaultFontPixelWidth / 2
550- visible: QGroundControl .corePlugin .isHerelink
551-
552- QGCComboBox {
553- model: [ qsTr (" 720p" ), qsTr (" 1080p" ) ]
554- currentIndex: _videoStreamSettings .resolution .rawValue
555- onActivated : (index ) => { _videoStreamSettings .resolution .rawValue = index }
556- }
557- }
558-
559559 QGCComboBox {
560560 Layout .fillWidth : true
561561 sizeToContents: true
0 commit comments