add channel selection to optional device parameters

This commit is contained in:
Alexander Sholohov 2023-10-29 22:49:29 +07:00
parent 3008303dc1
commit 2e47f38a8d

View file

@ -28,6 +28,7 @@ class ConnectorSource(SdrSource):
"rtltcp_compat": Option("-r"),
"ppm": Option("-P"),
"rf_gain": Option("-g"),
"soapy_channel": Option("-n"),
}
)
)
@ -87,10 +88,14 @@ class ConnectorDeviceDescription(SdrDeviceDescription):
"Swap I and Q channels",
infotext="Swapping inverts the spectrum, so this is useful in combination with an inverting mixer",
),
NumberInput(
"soapy_channel",
"Select SoapySDR Channel",
),
]
def getDeviceOptionalKeys(self):
return super().getDeviceOptionalKeys() + ["rtltcp_compat", "iqswap"]
return super().getDeviceOptionalKeys() + ["rtltcp_compat", "iqswap", "soapy_channel"]
def getProfileOptionalKeys(self):
return super().getProfileOptionalKeys() + ["iqswap"]