Add bias-tee support for rtl_tcp source

This commit is contained in:
Jarkko Vääräniemi 2024-10-10 22:48:08 +03:00
parent 3027c98fc9
commit 30af2494bb
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)]