Add bias-tee support for rtl_tcp source (#61)

This commit is contained in:
jeskko 2024-10-21 03:40:44 +03:00 committed by GitHub
parent 01779cfb20
commit 309274a6af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
from owrx.command import Flag, Option, Argument from owrx.command import Flag, Option, Argument
from owrx.form.input import Input from owrx.form.input import Input
from owrx.form.input.device import RemoteInput, DirectSamplingInput from owrx.form.input.device import RemoteInput, DirectSamplingInput, BiasTeeInput
from owrx.form.input.validator import Range from owrx.form.input.validator import Range
from typing import List from typing import List
@ -27,16 +27,16 @@ class RtlTcpDeviceDescription(ConnectorDeviceDescription):
return "RTL-SDR device (via rtl_tcp)" return "RTL-SDR device (via rtl_tcp)"
def getInputs(self) -> List[Input]: def getInputs(self) -> List[Input]:
return super().getInputs() + [RemoteInput(), DirectSamplingInput()] return super().getInputs() + [RemoteInput(), DirectSamplingInput(), BiasTeeInput()]
def getDeviceMandatoryKeys(self): def getDeviceMandatoryKeys(self):
return super().getDeviceMandatoryKeys() + ["remote"] return super().getDeviceMandatoryKeys() + ["remote"]
def getDeviceOptionalKeys(self): def getDeviceOptionalKeys(self):
return super().getDeviceOptionalKeys() + ["direct_sampling"] return super().getDeviceOptionalKeys() + ["direct_sampling", "bias_tee"]
def getProfileOptionalKeys(self): def getProfileOptionalKeys(self):
return super().getProfileOptionalKeys() + ["direct_sampling"] return super().getProfileOptionalKeys() + ["direct_sampling", "bias_tee"]
def getSampleRateRanges(self) -> List[Range]: def getSampleRateRanges(self) -> List[Range]:
return [Range(250000, 3200000)] return [Range(250000, 3200000)]