From 2327ab1924cceeef334c5a5a573c5d2e550bdcf3 Mon Sep 17 00:00:00 2001 From: consti10 Date: Sun, 11 Feb 2024 22:03:39 +0100 Subject: [PATCH] A ton of things: 1) async 'interface' for qml -> cpp param -> qml 2) Generic UI element for mavlink int-choices 3) Use this UI element in the sidebar where appropriate --- app/telemetry/settings/documentedparam.cpp | 2 +- qml/ui/sidebar/MavlinkIntChoiceElement.qml | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/telemetry/settings/documentedparam.cpp b/app/telemetry/settings/documentedparam.cpp index f8760e274..58d38b2f1 100644 --- a/app/telemetry/settings/documentedparam.cpp +++ b/app/telemetry/settings/documentedparam.cpp @@ -311,7 +311,7 @@ static std::vector> get_parameters_list(){ }), "Experimental,Default NONE, Type of Intra Refresh to use" ); - append_only_documented(ret,"BRIGHTNESS","Image capture brightness, [0..100], default 50. Increase for a brighter Image. However, if available, it is recommended to tune AWB or EXP instead."); + append_only_documented(ret,"BRIGHTNESS","Image capture brightness, [0..200], default 100. Increase for a brighter Image. However, if available, it is recommended to tune AWB or EXP instead."); append_only_documented(ret,"ISO","ISO value to use (0 = Auto)"); { diff --git a/qml/ui/sidebar/MavlinkIntChoiceElement.qml b/qml/ui/sidebar/MavlinkIntChoiceElement.qml index 8edbc7676..54cbd1258 100644 --- a/qml/ui/sidebar/MavlinkIntChoiceElement.qml +++ b/qml/ui/sidebar/MavlinkIntChoiceElement.qml @@ -18,10 +18,15 @@ BaseJoyEditElement{ ListModel{ id: elements_model_brightness + ListElement {value: 0; verbose:"0"} ListElement {value: 25; verbose:"25"} - ListElement {value: 50; verbose:"50\n(Default)"} + ListElement {value: 50; verbose:"50"} ListElement {value: 75; verbose:"75"} - ListElement {value: 100; verbose:"100"} + ListElement {value: 100; verbose:"100\n(Default)"} + ListElement {value: 125; verbose:"125"} + ListElement {value: 150; verbose:"150"} + ListElement {value: 175; verbose:"175"} + ListElement {value: 200; verbose:"200"} } ListModel{ id: elements_model_saturation