implement gain dialog with AGC option

This commit is contained in:
Jakob Ketterl
2021-02-19 21:07:13 +01:00
parent 86278ff44d
commit d0d946e09f
5 changed files with 61 additions and 4 deletions

View File

@ -10,8 +10,9 @@ from abc import ABC, abstractmethod
from owrx.command import CommandMapper
from owrx.socket import getAvailablePort
from owrx.property import PropertyStack, PropertyLayer
from owrx.form import Input, TextInput, NumberInput, CheckboxInput, FloatInput
from owrx.form.converter import IntConverter, OptionalConverter, FloatConverter
from owrx.form import Input, TextInput, NumberInput, CheckboxInput
from owrx.form.converter import IntConverter, OptionalConverter
from owrx.form.device import GainInput
from owrx.controllers.settings import Section
from typing import List
@ -394,7 +395,7 @@ class SdrDeviceDescription(object):
"Run background services on this device",
converter=OptionalConverter(defaultFormValue=True),
),
FloatInput("rf_gain", "Device gain", converter=OptionalConverter(FloatConverter())),
GainInput("rf_gain", "Device gain"),
]
def mergeInputs(self, *args):