add direct_sampling dropdown for rtl_tcp devices

This commit is contained in:
Jakob Ketterl 2023-08-04 02:18:29 +02:00
parent 0466c76acb
commit be3193ce50
2 changed files with 10 additions and 4 deletions

View file

@ -24,8 +24,8 @@ apt-get update
apt-get -y install --no-install-recommends $BUILD_PACKAGES
git clone https://github.com/jketterl/owrx_connector.git
# latest develop as of 2023-07-04 (cmake exports)
cmakebuild owrx_connector 5266c7d44be48c2583dd76cd2341b0d453c93dd7
# latest develop as of 2023-08-04 (direct_sampling for rtl_tcp_connector)
cmakebuild owrx_connector 5341601af353a60d5b3c66ece8bb8ac85bfdae7d
apt-get -y purge --autoremove $BUILD_PACKAGES
apt-get clean

View file

@ -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
from owrx.form.input.device import RemoteInput, DirectSamplingInput
from typing import List
@ -26,7 +26,13 @@ class RtlTcpDeviceDescription(ConnectorDeviceDescription):
return "RTL-SDR device (via rtl_tcp)"
def getInputs(self) -> List[Input]:
return super().getInputs() + [RemoteInput()]
return super().getInputs() + [RemoteInput(), DirectSamplingInput()]
def getDeviceMandatoryKeys(self):
return super().getDeviceMandatoryKeys() + ["remote"]
def getDeviceOptionalKeys(self):
return super().getDeviceOptionalKeys() + ["direct_sampling"]
def getProfileOptionalKeys(self):
return super().getProfileOptionalKeys() + ["direct_sampling"]