mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-04 14:08:38 +00:00
make AGC optional
This commit is contained in:
parent
f9772faa6f
commit
631232fe7c
3 changed files with 18 additions and 9 deletions
|
|
@ -468,6 +468,7 @@ class SdrDeviceDescription(object):
|
|||
return [
|
||||
TextInput("name", "Device name"),
|
||||
CheckboxInput("enabled", "Enable this device", converter=OptionalConverter(defaultFormValue=True)),
|
||||
GainInput("rf_gain", "Device gain", self.hasAgc()),
|
||||
NumberInput(
|
||||
"ppm",
|
||||
"Frequency correction",
|
||||
|
|
@ -482,7 +483,6 @@ class SdrDeviceDescription(object):
|
|||
"services",
|
||||
"Run background services on this device",
|
||||
),
|
||||
GainInput("rf_gain", "Device gain"),
|
||||
NumberInput(
|
||||
"lfo_offset",
|
||||
"Oscilator offset",
|
||||
|
|
@ -500,6 +500,10 @@ class SdrDeviceDescription(object):
|
|||
NumberInput("initial_squelch_level", "Initial squelch level", append="dBFS"),
|
||||
]
|
||||
|
||||
def hasAgc(self):
|
||||
# default is True since most devices have agc. override in subclasses if agc is not available
|
||||
return True
|
||||
|
||||
def getMandatoryKeys(self):
|
||||
return ["name", "enabled"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue