Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Nov 25, 2024
1 parent 1ee4e11 commit 3299cf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion qml/ui/sidebar/MappedMavlinkChoices.qml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ Item {
ListElement {value: 1; verbose:"5.8"}
ListElement {value: 2; verbose:"2.4"}
ListElement {value: 3; verbose:"ALL"}
//ListElement {value: 4; verbose:"CUSTOM"}
}
ListModel{
id: elements_model_rate
Expand Down Expand Up @@ -206,7 +207,7 @@ Item {
}
return frequencies_model;
}else if(param_id=="FREQUENCY_SCAN"){
return frequencies_model_with_5180mhz_lowband;
return elements_frequency_scan;
}else if(param_id=="CHANNEL_WIDTH"){
return elements_model_channel_width;
}else if(param_id=="RATE"){
Expand Down
10 changes: 5 additions & 5 deletions qml/ui/sidebar/MavlinkChoiceElement2.qml
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ BaseJoyEditElement2{
}else{
m_param_exists=m_settings_model.param_int_exists(m_param_id)
}
if(!m_param_exists){
console.log("Param "+m_param_id+" does not exist");
populate_display_text="NOT\nAVAILABLE";
return;
}
// if(!m_param_exists){
// console.log("Param "+m_param_id+" does not exist");
// populate_display_text="NOT\nAVAILABLE";
// return;
// }
if(override_takes_string_param){
var actual_value_string=m_settings_model.get_cached_string(m_param_id);
update_display_text(actual_value_string);
Expand Down

0 comments on commit 3299cf0

Please sign in to comment.