add direct_sampling mapping for rtl_sdr

This commit is contained in:
Jakob Ketterl 2020-04-01 23:37:40 +02:00
parent 78704885d7
commit 70ba0cd618
3 changed files with 9 additions and 6 deletions

View File

@ -14,6 +14,7 @@
- FiFi SDR: prevent arecord from shutting down after 2GB of data has been sent
- Added support for bias tee control on rtl_sdr devices
- All connector driven SDRs now support `"rf_gain": "auto"` to enable AGC
- `rtl_sdr` type now also supports the `direct_sampling` option
**0.18.0**
- Support for SoapyRemote

1
debian/changelog vendored
View File

@ -18,6 +18,7 @@ openwebrx (0.19.0) UNRELEASED; urgency=low
sent
* Added support for bias tee control on rtl_sdr devices
* All connector driven SDRs now support `"rf_gain": "auto"` to enable AGC
* `rtl_sdr` type now also supports the `direct_sampling` option
-- Jakob Ketterl <jakob.ketterl@gmx.de> Thu, 20 Feb 2020 21:01:00 +0000

View File

@ -1,14 +1,15 @@
from .connector import ConnectorSource
from owrx.command import Flag
from owrx.command import Flag, Option
class RtlSdrSource(ConnectorSource):
def getCommandMapper(self):
return super().getCommandMapper().setBase("rtl_connector").setMappings(
{
"bias_tee": Flag("-b")
}
return (
super()
.getCommandMapper()
.setBase("rtl_connector")
.setMappings({"bias_tee": Flag("-b"), "direct_sampling": Option("-e")})
)
def getEventNames(self):
return super().getEventNames() + ["bias_tee"]
return super().getEventNames() + ["bias_tee", "direct_sampling"]