1
0
Fork 0
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:
OptimusTi 2020-10-10 20:54:48 -04:00
parent 60933c6b02
commit a4865bc713
3 changed files with 19 additions and 4 deletions

View file

@ -2521,6 +2521,9 @@
"osd_snr_alarm": {
"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": {
"message": "General"
},

View file

@ -80,6 +80,9 @@
<label>
<select class="update_preview" data-setting="osd_right_sidebar_scroll" data-live="true"></select> Right Sidebar Scroll
</label>
<label>
<select class="update_preview" data-setting="osd_crsf_lq_format" data-live="true"></select> Crossfire LQ Format
</label>
<label>
<input type="checkbox" class="toggle update_preview" data-setting="osd_sidebar_scroll_arrows" data-live="true"> Sidebar Scroll Arrows
</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" />
<span data-i18n="osd_esc_temp_alarm_max"></span>
</label>
<div class="helpicon cf_tip" data-i18n_title="osdalarmSNR_HELP"></div>
<label for="snr_alarm">
<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>

View file

@ -1353,10 +1353,18 @@ OSD.constants = {
preview: FONT.symbol(SYM.RSSI) + '-100' + FONT.symbol(SYM.DBM)
},
{
name: 'CRSF_LQ',
id: 110,
positionable: true,
preview: '300%',
name: 'CRSF_LQ',
id: 110,
positionable: true,
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',