wire data parsing and storage
This commit is contained in:
@ -11,7 +11,7 @@ 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
|
||||
from owrx.form.converter import IntConverter, OptionalConverter, FloatConverter
|
||||
from owrx.controllers.settings import Section
|
||||
from typing import List
|
||||
|
||||
@ -394,7 +394,7 @@ class SdrDeviceDescription(object):
|
||||
"Run background services on this device",
|
||||
converter=OptionalConverter(defaultFormValue=True),
|
||||
),
|
||||
FloatInput("rf_gain", "Device gain"),
|
||||
FloatInput("rf_gain", "Device gain", converter=OptionalConverter(FloatConverter())),
|
||||
]
|
||||
|
||||
def mergeInputs(self, *args):
|
||||
|
@ -2,6 +2,7 @@ from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
|
||||
from owrx.command import Flag, Option
|
||||
from typing import List
|
||||
from owrx.form import Input, TextInput
|
||||
from owrx.form.converter import OptionalConverter
|
||||
|
||||
|
||||
class RtlSdrSource(ConnectorSource):
|
||||
@ -19,6 +20,11 @@ class RtlSdrDeviceDescription(ConnectorDeviceDescription):
|
||||
return self.mergeInputs(
|
||||
super().getInputs(),
|
||||
[
|
||||
TextInput("device", "Device identifier", infotext="Device serial number or index"),
|
||||
TextInput(
|
||||
"device",
|
||||
"Device identifier",
|
||||
infotext="Device serial number or index",
|
||||
converter=OptionalConverter(),
|
||||
),
|
||||
],
|
||||
)
|
||||
|
@ -3,6 +3,7 @@ from owrx.command import Option
|
||||
from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
|
||||
from typing import List
|
||||
from owrx.form import Input, TextInput
|
||||
from owrx.form.converter import OptionalConverter
|
||||
from owrx.form.soapy import SoapyGainInput
|
||||
|
||||
|
||||
@ -108,6 +109,7 @@ class SoapyConnectorDeviceDescription(ConnectorDeviceDescription):
|
||||
"device",
|
||||
"Device Identifier",
|
||||
infotext='SoapySDR device identifier string (example: "serial=123456789")',
|
||||
converter=OptionalConverter()
|
||||
),
|
||||
SoapyGainInput(
|
||||
"rf_gain",
|
||||
|
Reference in New Issue
Block a user