mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 16:25:19 +03:00
Adds CRSF LQ Formats
Adds LQ format used by TBS hardware and format used by other FC software.
This commit is contained in:
parent
60933c6b02
commit
a4865bc713
3 changed files with 19 additions and 4 deletions
|
@ -2521,6 +2521,9 @@
|
||||||
"osd_snr_alarm": {
|
"osd_snr_alarm": {
|
||||||
"message": "SNR Alarm Level"
|
"message": "SNR Alarm Level"
|
||||||
},
|
},
|
||||||
|
"osdalarmSNR_HELP": {
|
||||||
|
"message": "SNR is only shown below this value. 0dB (1:1 ratio), indicates that received signal equals noise floor."
|
||||||
|
},
|
||||||
"osdGroupGeneral": {
|
"osdGroupGeneral": {
|
||||||
"message": "General"
|
"message": "General"
|
||||||
},
|
},
|
||||||
|
|
|
@ -80,6 +80,9 @@
|
||||||
<label>
|
<label>
|
||||||
<select class="update_preview" data-setting="osd_right_sidebar_scroll" data-live="true"></select> Right Sidebar Scroll
|
<select class="update_preview" data-setting="osd_right_sidebar_scroll" data-live="true"></select> Right Sidebar Scroll
|
||||||
</label>
|
</label>
|
||||||
|
<label>
|
||||||
|
<select class="update_preview" data-setting="osd_crsf_lq_format" data-live="true"></select> Crossfire LQ Format
|
||||||
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" class="toggle update_preview" data-setting="osd_sidebar_scroll_arrows" data-live="true"> Sidebar Scroll Arrows
|
<input type="checkbox" class="toggle update_preview" data-setting="osd_sidebar_scroll_arrows" data-live="true"> Sidebar Scroll Arrows
|
||||||
</label>
|
</label>
|
||||||
|
@ -159,6 +162,7 @@
|
||||||
<input id="esc_temp_alarm_max" data-setting="osd_esc_temp_alarm_max" data-setting-multiplier="10" type="number" data-step="0.5" />
|
<input id="esc_temp_alarm_max" data-setting="osd_esc_temp_alarm_max" data-setting-multiplier="10" type="number" data-step="0.5" />
|
||||||
<span data-i18n="osd_esc_temp_alarm_max"></span>
|
<span data-i18n="osd_esc_temp_alarm_max"></span>
|
||||||
</label>
|
</label>
|
||||||
|
<div class="helpicon cf_tip" data-i18n_title="osdalarmSNR_HELP"></div>
|
||||||
<label for="snr_alarm">
|
<label for="snr_alarm">
|
||||||
<input id="snr_alarm" data-setting="osd_snr_alarm" data-setting-multiplier="1" type="number" data-step="1" />
|
<input id="snr_alarm" data-setting="osd_snr_alarm" data-setting-multiplier="1" type="number" data-step="1" />
|
||||||
<span data-i18n="osd_snr_alarm"></span>
|
<span data-i18n="osd_snr_alarm"></span>
|
||||||
|
|
16
tabs/osd.js
16
tabs/osd.js
|
@ -1353,10 +1353,18 @@ OSD.constants = {
|
||||||
preview: FONT.symbol(SYM.RSSI) + '-100' + FONT.symbol(SYM.DBM)
|
preview: FONT.symbol(SYM.RSSI) + '-100' + FONT.symbol(SYM.DBM)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'CRSF_LQ',
|
name: 'CRSF_LQ',
|
||||||
id: 110,
|
id: 110,
|
||||||
positionable: true,
|
positionable: true,
|
||||||
preview: '300%',
|
preview: function(osd_data) {
|
||||||
|
var crsflqformat;
|
||||||
|
if (Settings.getInputValue('osd_crsf_lq_format') == 1) {
|
||||||
|
crsflqformat = '2:100%';
|
||||||
|
} else {
|
||||||
|
crsflqformat = ' 300%';
|
||||||
|
}
|
||||||
|
return crsflqformat;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'CRSF_SNR_DB',
|
name: 'CRSF_SNR_DB',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue