File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed
Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ static constexpr auto WB_VIDEO_RATE_FOR_MCS_ADJUSTMENT_PERC="WB_V_RATE_PERC"; //
1717static constexpr auto WB_MAX_FEC_BLOCK_SIZE_FOR_PLATFORM=" WB_MAX_D_BZ" ;
1818static constexpr auto WB_TX_POWER_MILLI_WATT=" TX_POWER_MW" ;
1919static constexpr auto WB_TX_POWER_MILLI_WATT_ARMED=" TX_POWER_MW_ARM" ;
20+ static constexpr auto WB_TX_POWER_LEVEL=" TX_PWR_LVL" ;
2021// annoying 16 char settings limit
2122static constexpr auto WB_RTL8812AU_TX_PWR_IDX_OVERRIDE=" TX_POWER_I" ;
2223static constexpr auto WB_RTL8812AU_TX_PWR_IDX_ARMED=" TX_POWER_I_ARMED" ;
Original file line number Diff line number Diff line change @@ -92,6 +92,13 @@ Item {
9292 ListElement {value: 1 ; verbose: " HOTSPOT" }
9393 ListElement {value: 2 ; verbose: " CLIENT" }
9494 }
95+ ListModel{
96+ id: elements_model_tx_power_level
97+ ListElement {value: 0 ; verbose: " LOWEST" }
98+ ListElement {value: 1 ; verbose: " LOW" }
99+ ListElement {value: 2 ; verbose: " MID" }
100+ ListElement {value: 3 ; verbose: " HIGH" }
101+ }
95102 ListModel{
96103 id: elements_model_camera_rotation_degree
97104 ListElement {value: 0 ; verbose: " 0°\n (Default)" }
@@ -201,6 +208,8 @@ Item {
201208 return elements_model_hotspot
202209 }else if (param_id== " WIFI_MODE" ){
203210 return elements_model_wifi_mode
211+ }else if (param_id== " TX_PWR_LVL" ){
212+ return elements_model_tx_power_level
204213 }else if (param_id== " ROTATION_FLIP" ){
205214 return elements_model_camera_rotation_flip
206215 }else if (param_id== " RESOLUTION_FPS" ){
Original file line number Diff line number Diff line change @@ -67,7 +67,31 @@ SideBarBasePanel{
6767 air_wifi_hs .takeover_control ();
6868 }
6969 onGoto_next: {
70- sidebar .regain_control_on_sidebar_stack ()
70+ air_tx_power .takeover_control ();
71+ }
72+ }
73+ MavlinkChoiceElement2{
74+ id: air_tx_power
75+ m_title: " Air TX Power"
76+ m_param_id: " TX_PWR_LVL"
77+ m_settings_model: _ohdSystemAirSettingsModel
78+ onGoto_previous: {
79+ gnd_wifi_hs .takeover_control ();
80+ }
81+ onGoto_next: {
82+ gnd_tx_power .takeover_control ();
83+ }
84+ }
85+ MavlinkChoiceElement2{
86+ id: gnd_tx_power
87+ m_title: " Ground TX Power"
88+ m_param_id: " TX_PWR_LVL"
89+ m_settings_model: _ohdSystemGroundSettings
90+ onGoto_previous: {
91+ air_tx_power .takeover_control ();
92+ }
93+ onGoto_next: {
94+ sidebar .regain_control_on_sidebar_stack ();
7195 }
7296 }
7397 }
You can’t perform that action at this time.
0 commit comments