| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* qtgui: freq_sink waterfall_sink sink: Add bounds checking to GRC bindings
In addition:
fftsize starts in the runtime gui of the f/c sink with 512.
Adjust it to 32 , as in freq_sink_f/c
Check inside the sink_(f/c) block, if the fftsize is valid, to avoid core dump.
Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* qtgui: freq_sink waterfall_sink sink: Add power-of-two check to GRC bindings
Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Thomas Habets <thomas@habets.se>
|
|
|
|
| |
Signed-off-by: Thomas Habets <thomas@habets.se>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
run
/usr/share/clang/run-clang-tidy.py -checks=file '-header-filter=.*'
-fix ..
from build directory.
Then,
clang-format -i $(git diff --name-only origin/master)
to clang-format changed files.
Then, refresh all header hashes in pybind bindings
(*/python/bindings/*.cc)
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
|
|
|
|
|
|
|
| |
The win_type defined in firdes is marked as deprecated to be removed in
3.8, so let's go ahead and remove it and fix all the references
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fft: refactor fft classes as templates
In order to reduce code duplication construct fft objects and blocks
with template paramters.
Separate forward and reverse as a template
parameter
Maintain the real fft block forward as r2c and reverse as r2c as well
Co-authored-by: Andrej Rode <mail@andrejro.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
First batch of changes:
```
find […] -print0 | xargs -0 sed -i -r '/get_initial_sptr/{:nxt N;/;/!b nxt;s/get_initial_sptr\(\s*new ([^(]+)(.*)\)\)/make_block_sptr<\1>\2)/}'
```
Then:
* Back out `sptr_magic.h` edits
* Change some `friend` clauses
* clang-format the whole thing
* Update checksums in the pybind11 bindings files
|
|
|
|
|
| |
gr-qtgui uses lambdas instead of `boost::bind` to register message
handlers now. This component makes quite heavy use of message handlers.
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
gr-qtgui/python/qtgui/CMakeLists.txt
gr-qtgui/python/qtgui/range.py.cmakein
grc/core/generator/flow_graph.tmpl
|
| | |
| | |
| | |
| | | |
Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit switch the gr-qtgui blocks from being usable with Qt4 to
being usable with Qt5.
Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
|
| | | |
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
typical usage:
message_port_pub(pmt::mp("out_port"), …)
which is bad, as it implies hashing of a string, allocation of memory,
deallocation, finding the hashed string in the table of interned strings
and returning a unique pointer (which for reasons of PMT awesomeness
isn't even unique) to the interned port name.
Replacing all these port name ad hoc ::mp() calls by reusing one,
private, port name member.
|
|/ |
|
|
|
|
|
|
| |
Addresses problem of using FFTW buffers on AVX machines (when FFTW is not built with AVX).
Addresses Issue #645.
|
|
|
|
| |
setGraphicsSystem was introduced in 4.5; doing a version check before its use.
|
|
|
|
|
|
| |
Use absolte frequencies relative to sample rate and center freq.
Double-click does not retune, just sends message. Feedback to input freq can be used to retune.
|
|
|
|
| |
double-clicked. Also can take in a frequency message to adjust the x-axis.
|
|
|
|
|
|
| |
double-clicked, the center frequency is adjusted to the clicked frequency and a message is posted containing the new center frequency.
Should be able to connect this to a radio message port input that will adjust the frequency of the device itself.
|
|
|
|
| |
Addresses Issue #673.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This has two benefits:
- If ENABLE_PYTHON is disabled during build, the method will still be
there and just return NULL
- During build of external projects / apps that don't necessarely want
to have python included in the build, the exposed vtable is the same
as the one from GR (whether or not python was enabled during GR build)
Without this, using those block from outside without the exact same option
as during GR build would result in crash.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
| |
|
|
|
|
| |
Set through gr-qtgui.conf prefs file. Documented in QT GUI section of manual.
|
|
|
|
| |
buffers.
|
|
|
|
| |
Addresses iss #586; adapted for current set of warnings after patches since this issue was posted.
|
|
|
|
| |
(ENABLE_PYTHON=False).
|
|
|
|
| |
When creating the qApplication in the block, we have to make sure argc>0, argv contains at least one valid character (\0), and they exist over the life of the application.
|
| |
|
| |
|
|
|
|
| |
PMTs are handled slightly different and are installed into their own module and include dir.
|
| |
|
| |
|
|
|