From 56066460649c48e6715052311f1b1f405acb2272 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 10 May 2020 00:03:14 +0200 Subject: [PATCH] implement basic support for radioberry --- owrx/feature.py | 9 +++++++++ owrx/source/radioberry.py | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 owrx/source/radioberry.py diff --git a/owrx/feature.py b/owrx/feature.py index 17172a5..6d5b4fa 100644 --- a/owrx/feature.py +++ b/owrx/feature.py @@ -34,6 +34,7 @@ class FeatureDetector(object): "soapy_remote": ["soapy_connector", "soapy_remote"], "uhd": ["soapy_connector", "soapy_uhd"], "red_pitaya": ["soapy_connector", "soapy_red_pitaya"], + "radioberry": ["soapy_connector", "soapy_radioberry"], # optional features and their requirements "digital_voice_digiham": ["digiham", "sox"], "digital_voice_dsd": ["dsd", "sox", "digiham"], @@ -333,6 +334,14 @@ class FeatureDetector(object): """ return self._has_soapy_driver("redpitaya") + def has_soapy_radioberry(self): + """ + The Radioberry is a SDR hat for the Raspberry Pi. + + You can find more information, along with its SoapySDR module [here](https://github.com/pa3gsb/Radioberry-2.x). + """ + return self._has_soapy_driver("radioberry") + def has_dsd(self): """ The digital voice modes NXDN and D-Star can be decoded by the dsd project. Please note that you need the version diff --git a/owrx/source/radioberry.py b/owrx/source/radioberry.py new file mode 100644 index 0000000..5bb95c7 --- /dev/null +++ b/owrx/source/radioberry.py @@ -0,0 +1,6 @@ +from .soapy import SoapyConnectorSource + + +class RadioberrySource(SoapyConnectorSource): + def getDriver(self): + return "radioberry"