| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* uhd: pybind rfnoc_block
Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
* uhd: pybind rfnoc_rx/tx_radio
Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
* uhd: pybind rfnoc_ddc/duc
Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
* Fix TypeError: set_freq(): incompatible function arguments
Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
* uhd: rfnoc_rx/tx_streamer: Fix AttributeError
'gnuradio.uhd.uhd_python.rfnoc_rx_streamer' object has no attribute 'to_basic_block'
Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* When cross compiling gnuradio, change how the test files are built.
Normally, the gnuradio QA code expects to run in the build tree. For the
cross compilng case, we cannot run the QA code during the build process.
The changes here allow the creation of an additional package that can be
installed on a target that will run the QA code against the installed
libraries.
Major changes are not using full paths to test files (since they include
paths that only exist on the build machine) and not setting environment
variables in the shell files to force the QA code to use code in the
build tree.
This patch disables the C++ only tests, these need some work and then they
can be added back for the cross compile case.
Signed-off-by: Philip Balister <philip@balister.org>
|
|
|
|
| |
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
|
|
|
|
| |
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
|
|
|
|
| |
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
|
|
|
|
| |
Signed-off-by: Codey McCodeface <Codey.McCodeface@gmail.com>
|
|
|
|
| |
Signed-off-by: Codey McCodeface <Codey.McCodeface@gmail.com>
|
|
|
|
|
|
|
| |
The 'ant_direction_' key getters have been reappropriated for wider
use, changing to general 'direction_' and a few minor simplifications.
Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
|
|
|
|
| |
Signed-off-by: Victor Wollesen <victor.w@pervices.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
9cdfe5141a exposed a bug in gr-uhd: The filter API was incorrectly
implemented for UHD (multi_usrp had an API change in UHD 4.0).
This is an API change, b/c the existing gr-uhd code was actually never
compatible to UHD 4.0's filter API.
The change is to adapt gr-uhd's filter API to that in UHD.
Signed-off-by: Martin Braun <martin.braun@ettus.com>
|
|
|
|
| |
Signed-off-by: karel <5636152+karel@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It implements the ability to control frequency and gain in both
directions (Tx and Rx) with use of a single UHD source or sink - in the
same moment. It is possible to do that in separate moments with current
UHD blocks but this way it is not possible to change both Rx and Tx
settings for the same burst. Now, a single message can do that.
Note that there is a bit of an oddity here: The GNU Radio USRP blocks
are either Rx or Tx (source or sink). However, they all encapsulate an
underlying multi_usrp object. That means that under the hood, a USRP
source or a USRP sink potentially has access to the "other" direction.
This is made use in this patch.
To use this feature, add a direction key to the message dictionary going
to the block.
Signed-off-by: Martin Braun <martin@gnuradio.org>
|
|
|
|
|
|
| |
The qa_uhd.py test has been broken for a long time. Now fixed.
Signed-off-by: Martin Braun <martin@gnuradio.org>
|
|
|
|
| |
Signed-off-by: Huang Rui <vowstar@gmail.com>
|
|
|
|
|
|
| |
find ./ -iname qa*.py | xargs autopep8 --in-place -a -a
mostly formats whitespace and gets rid of trailing semicolons
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
UHD 4.0 is introducing a power reference level API, which will now
become available in GNU Radio. Its availability is conditionally
compiled into GNU Radio based on whether or not the feature is available
in the UHD version GNU Radio was compiled against.
USRP source and sink blocks receive the following new APIs:
- has_power_reference()
- set_power_reference()
- get_power_reference()
The command interface now understands a new `power_dbm` dictionary key.
The GRC bindings can now switch between absolute gain, normalized gain,
and absolute power settings.
If GNU Radio was compiled against an older version of UHD (prior to UHD
4.0) which doesn't have this API, an error or warning is printed, the
has_power_reference() will return false, and the others will throw an
exception.
|
|
|
|
|
|
|
|
|
|
|
| |
- Move get_usrp_info() to usrp_block
- Casts the return value to std::map so PyBind11 can turn it into
a dictionary in Python
This fixes an issue where get_usrp_info() would cause an Exception with
PyBind11.
Co-authored-by: Martin Braun <martin.braun@ettus.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
All of the removed `from __future__ import` were needed in older
versions of Python (mostly 2.5.x and below) but later became mandatory
in most versions of Python 3 hence are not necessary anymore.
More specifically, according to __future__.py[1]:
- unicode_literals is part of Python since versions 2.6.0 and 3.0.0;
- print_function is part of Python since versions 2.6.0 and 3.0.0;
- absolute_import is part of Python since versions 2.5.0 and 3.0.0;
- division is part of Python since versions 2.2.0 and 3.0.0;
Get rid of those unnecessary imports to slightly clean up the codebase.
[1] https://github.com/python/cpython/blob/master/Lib/__future__.py
|
|
|
|
|
| |
There is no need to have the dependence on uhd python bindings as the
types that are used in gr-uhd are wrapped separately
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
uhd python bindings were missing a couple of functions.
1. `uhd.ALL_MBOARDS` was not defined.
2. `uhd.streams_args` was incomplete.
Instead of import magic, we define a pybind constructor which supports
all cases. This should ease the maintainance burden as well.
Be aware: some notes that `this file was generated with bindtool` were
removed because this files contain manual edits. The foundations were
probably generated with bindtool once.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Instead of relying on the pyuhd pybind11 bindings, create new gr::uhd
pybind11 bindings that wrap the underlying types. Trying to use the
pyuhd bindings directly has many issues
Also, push some of the overloading into the constructors as opposed to
in the __init__ functions with constructor interception
|
| |
|
| |
|
|
|
|
|
|
|
| |
UHD used to have a type called io_type_t which is referenced in GNU
Radio, but never used. There were cases where SWIG would create invalid
code around this type. Since it's no longer used in GNU Radio, and
deprecated in UHD, removing it from gr-uhd is a twofer.
|
| |
|
|
|
|
|
|
|
|
| |
The gnuradio.uhd.{usrp_source,usrp_sink,amsg_source} blocks have
a custom ctor in Python which requires manual tracking of the available
arguments. This updates the Python module with respect to the C++ API.
Co-Authored-By: Ben Kempke <bpkempke@umich.edu>
|
|\ |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Manual merge conflict resolution has been applied to following
conflicts:
* Typos:
* gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py
* gr-blocks/python/blocks/qa_wavfile.py
* gr-filter/examples/gr_filtdes_api.py
* grc/blocks/parameter.xml
* gr-uhd/python/uhd/__init__.py
* ValueError -> RuntimeError:
* gr-blocks/python/blocks/qa_hier_block2.py
* relative Imports & other Py3k:
* gr-digital/python/digital/psk_constellations.py
* gr-digital/python/digital/qam_constellations.py
* gr-digital/python/digital/test_soft_decisions.py
* gr-digital/python/digital/gfsk.py
* SequenceCompleter:
* gr-utils/python/modtool/modtool_add.py
* gr-utils/python/modtool/modtool_rename.py
* gr-utils/python/modtool/modtool_rm.py
* Updated API on next:
* gr-blocks/grc/blocks_file_source.xml
* gr-blocks/python/blocks/qa_file_source_sink.py
* gr-qtgui/grc/qtgui_time_sink_x.xml
* GRC Py3k Updates:
* grc/core/Block.py
* grc/core/Constants.py
* grc/core/Platform.py
* grc/core/utils/odict.py
* grc/gui/Actions.py
* grc/gui/Block.py
* grc/gui/Executor.py
* grc/gui/Port.py
|
| | | |
|
| |\ \
| | |/
| |/| |
|
| | |
| | |
| | |
| | |
| | |
| | | |
CPack is not used, unmaintaned, and broken.
This does not eliminate any MSVC build functionality.
|
| |/
|/| |
|
|/
|
|
| |
Luzpaz went ahead and found typos using `codespell -q 3`.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
cross compiling.
With this (and the prior) patch, you can mount the compile directory on the target and run
the QA code (as long as the paths are the same). The qtgui tests fail if there is no X
server. Volk seems to fail for hard float builds.
We'll need to look at adding thes changes to gr_modtool.
Signed-off-by: Philip Balister <philip@balister.org>
|
| |
|
| |
|
|
uninstalled import works with recent changes.
|