summaryrefslogtreecommitdiff
path: root/gr-blocks
Commit message (Collapse)AuthorAgeFilesLines
...
* CMake: remove unused compile/header checksMarcus Müller2021-02-181-42/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-blocks: Update message debug error handling on Print PDU portJacob Gilbert2021-02-131-1/+2
| | | | | | Currently non PDU messages get silently dropped. This can mask connection issues; given this is a debug block a WARNing messages seems appropriate Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* gr-blocks: Fix control loop set_frequency() bounds check.David Pi2021-02-121-2/+2
| | | | Signed-off-by: David Pi <david.pinho@gmail.com>
* gr-blocks: tuntap_pdu: change char array size to fix warning on strncpyJeff Long2021-02-111-4/+6
| | | | Signed-off-by: Jeff Long <willcode4@gmail.com>
* Remove unneeded boost includes and avoid boost depreciated warningsVolker Schroer2021-02-071-1/+0
| | | | Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* Removing unused <cerrno> (and includes found on the way)Marcus Müller2021-01-283-18/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* clang-tidy: run full .clang-tidy on C++17 codebaseMarcus Müller2021-01-1945-56/+50
| | | | | | | | | | | | | | | | | | | | 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>
* File Source: handle EOF for non-seekable filesJeff Long2021-01-151-6/+15
| | | | | | Based on original PR by esqt. Signed-off-by: Jeff Long <willcode4@gmail.com>
* blocks: Use templates more efficiently in add_blkJohannes Demel2021-01-141-22/+35
| | | | | | | Compare recent changes in the moving_average block with those templatized `volk_add` functions instead of whole work functions being templatized. It should now be easier to add further templates for other block types.
* gr-blocks qa for peak_detector2: fix result type in test5Jeff Long2021-01-121-2/+2
| | | | Signed-off-by: Jeff Long <willcode4@gmail.com>
* peak_detector2: (Hopefully) correct fix for #3345rear10192021-01-112-10/+22
|
* peak_detector2: Make the recently added test case failrear10192021-01-111-3/+3
|
* peak_detector2: bug fix and add a test caseCallyan2021-01-112-1/+28
|
* peak_detector2: Return correct number of consumed itemsrear10192021-01-111-1/+1
| | | | This fixes #3345.
* gr-blocks: fix default length with list in Stream Mux and Demux ymlAdrien Michel2021-01-112-2/+2
| | | | Signed-off-by: Adrien Michel <adriengit@users.noreply.github.com>
* gr-blocks: Check fseek() for failureZackery Spytz2021-01-111-3/+9
| | | | | | Some fseek() calls were not being checked for failure. Signed-off-by: Zackery Spytz <zspytz@gmail.com>
* C++14: Use std::make_unique instead of boost::make_uniqueMarcus Müller2021-01-043-8/+8
| | | | | | Also, clean up includes Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* replace fft.window.WIN_ with window.win_ and include in grc default importJosh Morman2020-12-181-1/+1
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* global replace of firdes.WIN_ with fft.window.WIN_Josh Morman2020-12-181-1/+1
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* gr-blocks: Fix file source block large file handling for Windows.Ron Economos2020-12-181-2/+2
|
* build: Remove clang override warnings.Ron Economos2020-12-076-22/+22
|
* build: Remove clang unused variable warnings.Ron Economos2020-12-071-4/+0
|
* rotator: add getter rotator::phase()Jeff Long2020-11-252-1/+5
|
* gr-blocks: Add example flowgraphs for Stream Mux/Demux blocks.David Pi2020-11-043-124/+769
| | | | | Add a couple of example flowgraphs for these blocks. Usage is demonstrated in the wiki page of each block.
* modernization: `override` instead of virtual in all compilation unitsMarcus Müller2020-11-03110-319/+325
|
* Add `override` for common virtual function overridesThomas Habets2020-11-03143-169/+165
| | | | | | | | | | Mostly done with: ``` find -name "*_impl.h" | xargs sed -i -r '/(void forecast|int work|int general_work|bool check_topology)\(/{:back /\)/b nxt;N;b back;:nxt s/\)$|\)(;)/) override\1/g}' ``` Then I removed an incorrect `work` that this found.
* qa: run autopep8 formatting on qa python filesmormj2020-10-3077-1326/+1824
| | | | | | find ./ -iname qa*.py | xargs autopep8 --in-place -a -a mostly formats whitespace and gets rid of trailing semicolons
* qa: remove xml file parameter causing deprecation warningsmormj2020-10-3074-76/+73
|
* Fix typos throughout the codeluzpaz2020-10-297-10/+10
| | | | | | | * Fix various typos Found via `codespell v2.0.dev` `codespell -q 3 -L ans,fo,hist,inout,ist,ith,nd,sinc,uint -S ./volk`
* pybind: add implicit conversion from int to enummormj2020-10-284-0/+8
| | | | | | | | | | | | | * dtv: add implicit conversion from int to enum * analog: add implicit conversion from int to enum * blocks: add implicit conversion from int to enum * digital: add implicit conversion from int to enum * fec: add implicit conversion from int to enum * fft: add implicit conversion from int to enum * filter: add implicit conversion from int to enum * qtgui: add implicit conversion from int to enum * trellis: add implicit conversion from int to enum * vocoder: add implicit conversion from int to enum * bindtool: add implicitly_convertible to all enums
* blocks: use posix_fadvise to tell OS about sequential access and prefetchMarcus Müller2020-10-281-1/+28
|
* blocks: improvements to the message_debug blockJacob Gilbert2020-10-246-40/+92
| | | | aggregates the data to be printed into a stringstream so that it is printed at the same time reducing debug information becoming muddled between competing cout statements. this change also provides an argument to this block to disable the printing of PDU uniform vectors which are often not needed for debug purposes
* blocks: prevent losing rx_time precision in gr_read_file_metadataDaniel Estévez2020-10-201-3/+12
| | | | | | | | | | | | | | | | | | The utility gr_read_file_metadata uses parse_file_metadata.parse_header() from gr-blocks to parse and print headers in a metadata file. Currently, the rx_time field is printed with us precision. However, the rx_time is stored as the integer seconds of the UNIX timestamp in an uint64_t plus a double storing the fraction of a second, so the rx_time has more precision. A precision on the order of 1ns is necessary for many ranging applications, since 1us is approximately 300m of range. This modifies parse_file_metadata.parse_header() to print rx_time with 16 decimal places, without losing precision. Aditionally, it adds "rx_time_secs" and "rx_time_fracs" fields to the dict() return value of parse_header(), in case they are ever needed. The "rx_time" field in this dict() is a double, and as such it is unable to store a UNIX timestamp with 1ns precision.
* gr-blocks: Stream Mux C++ improvementsDavid Pi2020-10-202-15/+14
| | | | | | | - replace C-style cast with reinterpret_cast<> - make some variables const - prefer in-class initializers for static data - avoid copies in for loop by using a reference
* blocks: comment fix, typo in complex_to_real.h, complex_to_imag.hPaul Boven2020-10-124-6/+6
|
* gr-blocks: Add missing methods to Add Const block pybind11 binding.Ron Economos2020-10-081-1/+3
|
* gr-blocks: Add missing methods to Multiply Const block pybind11 binding.Ron Economos2020-10-071-1/+3
|
* blocks: New block 'Stream Demux'David Pi2020-09-2512-2/+661
| | | | | | | | | | | | | | | | Stream demuxing block to demultiplex one stream into N output streams. Demuxes a stream producing N outputs streams that contains n_0 items in the first stream, n_1 items in the second, etc. and repeats. Number of items of each output stream is specified using the 'lengths' parameter like so [n_0, n_1, ..., n_N-1]. Example: lengths = [2, 3, 4] input stream: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...] output_streams: [0, 1, 9, 10, ...] [2, 3, 4, 11, ...] [5, 6, 7, 8, ...]
* gr-blocks: Fix wavfile sink and source block performance issues.Ron Economos2020-09-254-27/+46
| | | | | | | Calling libsndfile sf_read/write_float() for every sample created too much overhead. sf_read/write_float() is now called every 1024 samples for the wavfile source block and every 8192 samples for the wavfile sink block.
* gr-blocks: More graceful error handling of missing sndfile dependency.Ron Economos2020-09-207-13/+66
|
* blocks: selector: update to only forecast active inputmormj2020-09-141-1/+2
|
* blocks: align output tags in selector blockmormj2020-09-091-0/+14
|
* blocks/correctiq: Clean up member initializationThomas Habets2020-09-095-17/+22
|
* blocks/correctiq: Remove manual memory management & add constThomas Habets2020-09-096-85/+41
|
* add an option to enable/disable examplesGwenhael Goavec-Merou2020-09-021-1/+3
|
* gr-blocks: Transition the WAV sink and source blocks to libsndfile.Ron Economos2020-09-0117-657/+404
| | | | Compressed input and output with FLAC and Ogg Vorbis now supported.
* blocks: fix typo, artifact of log2_l_type renamingmormj2020-08-241-1/+1
|
* blocks: remove log2_constMarcus Müller2020-08-148-190/+18
| | | | | | | | | | | | Was not standards-compliant (assert(0) in constexpr) Only used in packed_to_unpacked to get the log2(number of bits(type)) in packed_to_unpacked<type>. Was not wrapped to python nor public API. To little surprise, a static method compiles faster, and gets compile-time-calculated by a modern compiler, too.
* blocks/tcp_connection: Move vector size to initializerThomas Habets2020-08-141-2/+1
|
* blocks/tcp_connection: Remove manual memory managementThomas Habets2020-08-142-14/+6
|