Skip to content

Commit

Permalink
A ton of things:
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Consti10 committed Feb 11, 2024
1 parent 35fb507 commit 2327ab1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/telemetry/settings/documentedparam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static std::vector<std::shared_ptr<XParam>> 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)");

{
Expand Down
9 changes: 7 additions & 2 deletions qml/ui/sidebar/MavlinkIntChoiceElement.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2327ab1

Please sign in to comment.