From 30af2494bb6ab2e50f8e1a6a97a163f668cb2b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarkko=20V=C3=A4=C3=A4r=C3=A4niemi?= Date: Thu, 10 Oct 2024 22:48:08 +0300 Subject: [PATCH] Add bias-tee support for rtl_tcp source --- owrx/source/rtl_tcp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/owrx/source/rtl_tcp.py b/owrx/source/rtl_tcp.py index 3375fe75..746dfb4e 100644 --- a/owrx/source/rtl_tcp.py +++ b/owrx/source/rtl_tcp.py @@ -1,7 +1,7 @@ from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription from owrx.command import Flag, Option, Argument 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 typing import List @@ -27,16 +27,16 @@ class RtlTcpDeviceDescription(ConnectorDeviceDescription): return "RTL-SDR device (via rtl_tcp)" def getInputs(self) -> List[Input]: - return super().getInputs() + [RemoteInput(), DirectSamplingInput()] + return super().getInputs() + [RemoteInput(), DirectSamplingInput(), BiasTeeInput()] def getDeviceMandatoryKeys(self): return super().getDeviceMandatoryKeys() + ["remote"] def getDeviceOptionalKeys(self): - return super().getDeviceOptionalKeys() + ["direct_sampling"] + return super().getDeviceOptionalKeys() + ["direct_sampling", "bias_tee"] def getProfileOptionalKeys(self): - return super().getProfileOptionalKeys() + ["direct_sampling"] + return super().getProfileOptionalKeys() + ["direct_sampling", "bias_tee"] def getSampleRateRanges(self) -> List[Range]: return [Range(250000, 3200000)]