summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* network: include boost/format where usedMarcus Müller2021-09-072-0/+2
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* modules: include boost/format where usedMarcus Müller2021-09-0769-6/+74
| | | | | | | | | | | | | | | | | | | in the classic modules: audio blocks digital dtv fec fft filter qtgui trellis/fsm uhd video-sdl vocoder/freedv_rx Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* runtime: include boost/format where usedMarcus Müller2021-09-079-0/+9
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* grc: Add no_quotes() convenience function (callable from templates)Håkon Vågsether2021-09-071-0/+11
| | | | Signed-off-by: Håkon Vågsether <hauk142@gmail.com>
* qtgui: Replace pyqwidget() with qwidget()David Winter2021-09-03123-732/+104
| | | | | | | | | | | | | | | | | | | | | | | | | Previously, two versions of the `qtwidget` functions existed, `qwidget()` and `pyqwidget()`, with the only difference being that `qwidget()` returned a pointer to the `QWidget` object managed by the corresponding block, while `pyqwidget()` returned that same pointer, but as an integer (Or `PyLong` in this case). While `qwidget()` is used by C++ code accessing the widgets, `pyqwidget()` is only used for the python interface. This makes these two methods redundant, thus this commit entirely removes `pyqwidget()`, and modifies the `qwidget()` python wrapper to behave like `pyqwidget()`. Note that we can be fairly confident that this change will not effect potential users of `qwidget()`, because any invocation on the objects previously returned by `qwidget()` would cause a segmentation fault. This commit also fixes a memory leak: Internally, the `pyqwidget()` functions were returning a PyLong `PyObject *`, which was then upwrapped in a pybind trampoline without decrementing the reference count of that python object. Signed-off-by: David Winter <david.winter@analog.com>
* gr-video-sdl: Remove if (1)Solomon Tan2021-09-022-44/+18
| | | | | | Remove `if (1)`. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* gr-video-sdl: Remove d_formatSolomon Tan2021-09-029-65/+20
| | | | | | | Remove d_format because the yaml sets it to 0, and is not checked at all after initialization. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* grc: generate cpp hier code switch to std::shared_ptrVolker Schroer2021-09-021-1/+1
| | | | | | | gnuradio >= 3.9 uses std::shared_ptr instead of boost::shared_ptr This is fixed here. See too: #4951 Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* grc cpp generation: Establish the possibility to add find packagesVolker Schroer2021-09-025-2/+29
| | | | | | | | | Flowgraphs may use oot modules. When generating cpp code an oot module may require a package that is not provided by gnuradio. So I propose to add an additional entry parameters in the cpp template to provide a list of package names. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* gr-digital: fix gfsk documentationSolomon Tan2021-09-021-35/+34
| | | | | | | The gfsk hier block documentation is shifted so it will be shown in the documentation tab of the block. It is otherwise not shown. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* gr-digital: replace clk recovery MM in hier blksSolomon Tan2021-09-024-28/+52
| | | | | | | | | | | | | As Clock Recovery MM is deprecated, this commit replaces them in the hier blocks, gmfsk demod and gfsk demod, with Andy Wall's Symbol Sync block. Backward compatibility is maintained by keeping the parameters unchanged, and converting the two gain values to the corresponding loop bandwidth value that Symbol Sync requires. Even though `mu` parameter's services is no longer required, we leave it in the hier block for backward compatibility purposes. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* filter: use output multiple for pfb arbitrary resamplerJeff Long2021-09-023-0/+12
| | | | | | | | | | | | | | | | | | | | When interpolating, the resampler was taking up a full cpu even at very low rates. This is due to polling when no input items are available. For interpolation, this change sets the output multiple to the greater of the relative rate and the number of pfb filter arms. This is fairly arbitrary, but results in usable output multiples and good performance. The output multiple can only be set effectively in the block constructor. This means that it will not change if the relative rate is set dynamically. For widely varying rates, this could be a problem. For rates that vary around 1.0, if the rate is initially set to 0.9 and then changed to 1.1, performance will be as before (bad) when the rate goes above 1.0. For this reason, and in hopes that the user will start with 1.0 in such a case, the output multiple is set for 1.0. Signed-off-by: Jeff Long <willcode4@gmail.com>
* grc: Fix cpp hier param yaml templateSolomon Tan2021-08-231-5/+5
| | | | | | | | | | | The following issues are fixed for the cpp hier block parameter yaml template generation. 1. The key of the `data` dictionary containing the parameters should be `parameters` instead of `param`. 2. Fix the yaml template for the parameter to generate `${param}` instead of `$param` in the yaml file. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* grc/cmake: Improve pyyaml checkMartin Braun2021-08-232-2/+1
| | | | | | The check checked for one version and reported another. Signed-off-by: Martin Braun <martin@gnuradio.org>
* pkg: Add gir1.2-gtk-3.0 as deb runtime dependencyIgor Freire2021-08-231-1/+2
| | | | | | | | It seems that package gir1.2-gtk-3.0 is a required runtime dependency for running gnuradio-companion. Add it to the Debian package's list of runtime dependencies. Signed-off-by: Igor Freire <igor@blockstream.com>
* gr-digital: Make unpack optional for gmsk mod hier blockSolomon Tan2021-08-232-4/+17
| | | | | | | Allow the unpack option to be disabled for custom, non-byte-aligned bit streams in gmsk mod, just like how it was done for gfsk in #4940. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* digital: replace likelyhood with likelihoodRohan Sharma2021-08-231-2/+2
| | | Signed-off-by: Rohan Sharma <rhnsharma5113@gmail.com>
* gr-blocks: use correct namespace for nco and vco in benchmarksJeff Long2021-08-232-10/+12
| | | | | | Fix provided by Gisle Vanem (@gvanem) Signed-off-by: Jeff Long <willcode4@gmail.com>
* gr-fft: add "shift" param to logpwrfft blockJeff Long2021-08-232-4/+11
| | | | | | Contributed by Marcus Leech Signed-off-by: Jeff Long <willcode4@gmail.com>
* audio/jack: to_string is no longer part of boost:: NS, instead use std::Marcus Müller2021-08-232-2/+2
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-filter: cpp code genration fails for root raised cosine filterVolker Schroer2021-08-231-1/+1
| | | | | | | The rrc block has no parameter type.fcn, which is wrongly used in cpp code generation but not in python code generation. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* gr-video-sdl: Fix reversal of U and V channels on sink blocks.Ron Economos2021-08-232-2/+2
| | | | Signed-off-by: Ron Economos <w6rz@comcast.net>
* grc: fix the evaluation of interdependent variablesVolker Schroer2021-08-072-1/+1
| | | | | | | | The gr-digital/examples/tx_ofdm.grc fails to evaluate the header_formater variable. This pr fixes #4937 Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* gr-uhd: fix input filename in freq hopping examplesAdrien Michel2021-08-051-1/+1
| | | | Signed-off-by: Adrien Michel <adriengit@users.noreply.github.com>
* iio: Remove struct specifier (not necessary in C++, clutters a bit)Marcus Müller2021-08-0230-84/+78
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* runtime: remove tag_checkerMarcus Müller2021-07-306-146/+0
| | | | | | | | | | | | | | | | | | | | | | Deprecated on 3.9: `tag_checker` used to be meant for cases where you've gotten an unsorted tag vector (mostly, from `get_tags_in_range`), which you then had to go through in parallel to your samples, to check which tag applies at what sample. For that it sorts the tags; the tags coming from the `get_tags*` functions are sorted already The checking pattern (which `chunks_to_symbols` is the last consumer of) is inefficient: instead of taking the index of the first unprocessed tag and processing all samples up to that index, a check is performed on every sample, which includes calls and multiple indirections. So, since very likely nobody uses this, and because it's a design anti-pattern, deprecating this on 3.9 and removing it with 3.10. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* pybind11: remove debug messagejapm482021-07-302-8/+0
| | | | Signed-off-by: japm48 <japm48@users.noreply.github.com>
* gr-iio: pluto source /sink fails to set paramter if german locale is usedVolker Schroer2021-07-273-7/+12
| | | | | | | | | | | | | pluto source / sink fails to set hardwaregain with gr::log :WARN: iio::device::set_params - Unable to write attribute in_voltage0_hardwaregain: -22 gr::log :WARN: iio::device::set_params - Unable to write attribute out_voltage0_hardwaregain: -22 gain values are treated as double. The conversion std::to_string() uses the locale setting. So in the US std::to_string(10.) leads to "10.0" while in Germany the result is "10,0" which the pluto handles as error. This problem only exists if real values are converted. So check if the converted string contains a , as separator and change it to a dot . Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* digital/chunks_to_symbols: special case for the common single-dimension caseMarcus Müller2021-07-271-15/+38
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* digital/chunks to symbols: be less inefficientMarcus Müller2021-07-274-34/+53
| | | | | | | | | | | | | The block formerly took the tags from get_tags_in_range (which are sorted), gave them to tag_checker, which sorted them, and then went through every input sample, checking its index against the next tag. Removed the tag_checker; that saves us a sorting of a sorted vector. The other optimization is to not dispatch any tag encountered to the own message handler; instead, the handler is called directly. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* digital: more details in constellation testMarcus Müller2021-07-271-1/+14
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* digital: at least superficially test chunk_to_symbols dimensions>1Marcus Müller2021-07-271-0/+44
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* digital: remove non-existing msg output from chunks_to_symbols block yamlMarcus Müller2021-07-271-3/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-qtgui: Add double quotes to cpp_opts keys with colons.Ron Economos2021-07-275-9/+9
| | | | | | This is required for compatibility with Ubuntu 18.04 LTS. Signed-off-by: Ron Economos <w6rz@comcast.net>
* c++ generation: escape "." in translationsJeff Long2021-07-2712-12/+12
| | | | | | | Translations are a regex, so "." needs to be escaped. Fix the remaining unescaped strings. Signed-off-by: Jeff Long <willcode4@gmail.com>
* digital: add int() cast where requiredJeff Long2021-07-271-1/+1
| | | | | | | Skiphead requires an integer number of samples, but was being called with a float parameter. Signed-off-by: Jeff Long <willcode4@gmail.com>
* Update README.pduJason Uher2021-07-261-1/+1
| | | | Signed-off-by: Jason Uher <jason.uher@jhuapl.edu>
* gr-pdu: fix pdu_lambda and examplesJacob Gilbert2021-07-225-94/+107
| | | | | | | The lambda block and examples had some errors from when it was an OOT block which are fixed in this; docs updated too Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* gfsk: Make packed_to_unpacked optionalSolomon Tan2021-07-212-4/+20
| | | | | | | | | | | Provide the option to not use the packed_to_unpacked block in the gfsk mod hier block so that the latter can be used to modulate non-byte-aligned bit stream. The option enables packed_to_unpacked by default for backward compatibility. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* digital: constellation_receiver_cb reworkMarcus Müller2021-07-211-50/+84
| | | | | | | | Removes tag_checker Improves performance Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-pdu: Fix indentation in pdu_pdu_lambda.block.yml file.Ron Economos2021-07-201-1/+1
| | | | Signed-off-by: Ron Economos <w6rz@comcast.net>
* cmake: Fix finding libunwindPavon2021-07-201-1/+1
| | | | | | | | | | The libfind_process macro expects <lib>_PROCESS_INCLUDES to be set to the names of variables containing the include paths, not the include paths themselves. This was causing find_package(libunwind) to always fail, even when the necessary files were correctly found by find_path and find_library. Signed-off-by: Pavon <pavon@protonmail.com>
* grc: allow short and byte as valid types in an enumJeff Long2021-07-193-3/+3
| | | | Signed-off-by: Jeff Long <willcode4@gmail.com>
* cmake: correct minimum version checking for MakoJeff Long2021-07-192-3/+8
| | | | | | A string-based '>=" only works for single digit version numbers. Signed-off-by: Jeff Long <willcode4@gmail.com>
* pdu: use common precompiled headersMarcus Müller2021-07-191-0/+4
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* iio: use common precompiled headersMarcus Müller2021-07-191-0/+4
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* soapy: use common precompiled headersMarcus Müller2021-07-191-0/+4
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* network: use common precompiled headersMarcus Müller2021-07-191-0/+5
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* classic modules: use common precompiled headersMarcus Müller2021-07-1914-5/+65
| | | | | | | This commit contains all the additions to gr-*/lib/CMakeLists.txt applicable to modules already present in 3.8. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* CI: build on Ubuntu -Werror -Wno-error=invalid-pch to enable precompiled headersMarcus Müller2021-07-191-1/+1
| | | | | | without, CI fails, because PCHs + special defines for single files can't work Signed-off-by: Marcus Müller <mmueller@gnuradio.org>