Added support for automatically enabling auto adjust waterfall levels - JBG

This commit is contained in:
Jason Gaunt
2021-12-19 17:32:52 +00:00
parent 66492ff40a
commit 5aeed3c670
4 changed files with 17 additions and 3 deletions

View File

@ -142,6 +142,7 @@ defaultConfig = PropertyLayer(
waterfall_scheme="GoogleTurboWaterfall",
waterfall_levels=PropertyLayer(min=-88, max=-20),
waterfall_auto_levels=PropertyLayer(min=3, max=10),
waterfall_auto_level_default_mode=False,
waterfall_auto_min_range=50,
tuning_precision=2,
squelch_auto_margin=10,

View File

@ -129,6 +129,7 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
"waterfall_scheme",
"waterfall_colors",
"waterfall_auto_levels",
"waterfall_auto_level_default_mode",
"waterfall_auto_min_range",
"fft_size",
"audio_compression",

View File

@ -2,6 +2,7 @@ from owrx.controllers.settings import SettingsFormController
from owrx.form.section import Section
from owrx.config.core import CoreConfig
from owrx.form.input import (
CheckboxInput,
TextInput,
NumberInput,
FloatInput,
@ -117,6 +118,11 @@ class GeneralSettingsController(SettingsFormController):
infotext="Specifies the upper and lower dynamic headroom that should be added when automatically "
+ "adjusting waterfall colors",
),
CheckboxInput(
"waterfall_auto_level_default_mode",
'Automatically adjust waterfall level by default',
infotext="Enable this to automatically enable auto adjusting waterfall levels on page load."
),
NumberInput(
"waterfall_auto_min_range",
"Automatic adjustment minimum range",