summaryrefslogtreecommitdiff
path: root/gr-fec
Commit message (Collapse)AuthorAgeFilesLines
* fec: async_ldpc_encoders example, move alist_file out of variableJosh Morman2020-06-241-14/+149
| | | | | | For some reason when running grcc with this example, the generation fails when the alist_file is a separate variable. Works fine from GRC, but not in grcc
* fec: fix non-compiling example filesJosh Morman2020-06-242-2265/+773
|
* fec: add aliases to _make functionsJosh Morman2020-06-041-0/+12
|
* fec: remap enums in yml from int to raw for pybind compatibilityJosh Morman2020-06-042-2/+2
|
* msg_handler: Use lambdas in most componentsJohannes Demel2020-06-045-9/+7
| | | | | With this commit, all components except gr-qtgui use lambdas instead of `boost::bind` to register msg handlers.
* pybind: add hash check to binding file creation (#3472)mormj2020-06-0442-42/+372
|
* pybind: run clang-formatJosh Morman2020-06-044-5/+10
|
* fec: add pybind11 bindingsJosh Morman2020-06-0499-32/+4271
|
* fec: replace char with uint8_tJosh Morman2020-06-0427-71/+73
| | | | | pybind gets confused with char arguments and tries to interpret them as strings. uint8_t is more consistent across the gr codebase as well
* pybind: removal of swig componentsJosh Morman2020-06-044-191/+0
|
* fec: replace stderr logging by calls to GR's logging faciltiesMarcus Müller2020-04-131-5/+5
|
* Remove VOLK as a submoduleMartin Braun2020-04-111-1/+0
| | | | | | | | | | | | | | This removes the volk/ submodule pointer and updates the CMake to detect VOLK like any other dependency. The VOLK_MIN_VERSION CMake variable is added (and set to 2.1.0). The GR_VOLK_LIB variable is replaced with Volk::volk everywhere. The VOLK_INSTALL_LIBRARY_DIR and VOLK_INSTALL_INCLUDE_DIR variables weren't used and were removed. CMake will now fail if VOLK cannot be detected. Therefore, ENABLE_VOLK was also removed as a variable; all in-tree components may assume the existence of VOLK.
* fec: make SciPy an optional dependencyJohannes Demel2020-04-021-1/+6
| | | | | | This patch fixes issues like #1545 and #1539. Basically if a module in fec.polar requires SciPy and fails to do , it overwrites the missing function with an approximate version
* Switch from boost pointers to std C++11 pointersThomas Habets2020-04-0121-40/+39
| | | | | | | | | | | | | | | | | | | Most of this code is automated code changes: ``` set -e SUB="s/dummy/dummy/" for i in shared_ptr make_shared dynamic_pointer_cast weak_ptr enable_shared_from_this get_deleter; do SUB="$SUB;s/boost::$i/std::$i/g" done SUB="$SUB;s^#include <boost/shared_ptr.hpp>^#include <memory>^g" SUB="$SUB;s^namespace boost^namespace std^g" find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.cxx" -o -name "*.py" \) -print0 | xargs -0 sed -i "$SUB" ``` Only one manual change. In `./gr-fec/lib/fec_mtrx_impl.cc`, add `#include <algorithm>`.
* runtime/viterbi: get rid of GR_M_LOG2E constantMarcus Müller2020-02-141-9/+6
| | | | | | | | | Constant was only used to emulate log_2 from ln. Which is a strange thing to do on a computer with binary floating point numbers. Which is a superfluous thing to do when you have ::log2 in C++11.
* gr-fec: fix compiler warningClayton Smith2020-02-102-2/+2
|
* fixup! gr-fec/cc_encoder: Fix and improve documentationMartin Braun2020-02-021-3/+6
| | | | This fixes the formatting in cc_encoder_impl.cc.
* gr-fec/cc_encoder: Fix and improve documentationrear10192020-02-011-19/+45
| | | | | | | | | | | | | | | | | | * Fix wrong Voyager polynomials. The binary and decimal representation which must be passed as an argument to the block, however, is correct. * Clarify how the generator polynomials are to be represented. Add the important note that an uncommonly used representation is required. * Mention that start_state must be possibly reversed and that start_state is used to flush the encoder in terminated mode. * Mention support for inversion of the output of a generator polynomial. * Improve description of tailbiting and terminated mode. * Mention valid values for parameters.
* gr-fec/cc_encoder: Add checks for parametersrear10192020-02-011-0/+20
|
* gr-fec/cc_encoder: Fix constraint length K > 8rear10192020-02-011-1/+1
| | | | | | | | The convolutional encoder produces wrong output for codes with a constraint length larger than 8. Fix this by using a variable of appropriate size. Fixes #2344.
* doxygen: Resolve broken references with Wiki links.Ron Economos2020-01-291-4/+5
|
* Properly read AList in LDPC_matrixkc12122020-01-291-1/+1
| | | read_alist_file is not an LDPC_matrix method.
* Update license header to SPDX formatdevnulling2020-01-27184-2393/+185
|
* gr-fec: reed-solomon: check for null callocValerii Zapodovnikov2020-01-241-0/+2
| | | calloc() can return NULL too
* examples: fixup cmake files to include all examplesdevnulling2020-01-221-6/+12
|
* Fix all formatting issuesMartin Braun2020-01-102-3/+4
| | | | | This fixes every leftover file in the GNU Radio source tree to match our clang-format definition.
* gr-fec: Add QA test for buffer overflow in CC decoderDaniel Estévez2020-01-061-0/+58
| | | | | | | | | Adds a QA test that tries to detect the kind of buffer overflows in the CC decoder that were fixed in #2965 The decoder is run with different frame lengths, and several frames are tried to be decoded for each frame length. The test is considered successful if it doesn't segfault or abort.
* Fix heap corruption bug in async_decoderDaniel Estévez2020-01-051-1/+1
| | | | | | When using async_decoder with a CC decoder with k = 7 and no input byte packing, the frame size of the underlying FEC decoder is set incorrectly to a too large value. This causes out of bounds accesses which corrupt the heap.
* Remove newlines from exception messagesThomas Habets2020-01-012-8/+8
|
* Use C++11 ranged for and ranged insert instead of manual loopsThomas Habets2019-12-041-5/+4
|
* change rounding method to `lround`Mathias Rasmussen2019-11-175-21/+21
|
* fec: do not use deprecated register specifierBastian Bloessl2019-09-051-1/+1
|
* fec: delete unnecessary forward declartionBastian Bloessl2019-09-051-1/+0
|
* clang-tidy in gnuradio-runtime: use empty() instead of size()!=0Marcus Müller2019-08-223-3/+3
|
* clang-format: Ordering all the includesMarcus Müller2019-08-0974-129/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang-format: ordering includes in gnuradio-runtime clang-format: ordering includes in gr-filter clang-format: ordering includes in gr-fft clang-format: ordering includes in gr-audio clang-format: ordering includes in gr-analog clang-format: ordering includes in gr-fec clang-format: ordering includes in gr-wavelet clang-format: ordering includes in gr-zeromq clang-format: ordering includes in gr-vocoder clang-format: ordering includes in gr-video-sdl clang-format: ordering includes in gr-trellis clang-format: ordering includes in gr-blocks clang-format: ordering includes in gr-digital clang-format: ordering includes in gr-uhd clang-format: ordering includes in gr-dtv clang-format: ordering includes in gr-channels clang-format: ordering includes in gr-qtgui clang_format.py: re-enable include reordering
* Tree: clang-format without the include sortingMarcus Müller2019-08-09142-10054/+9790
|
* fec: add list() around nested map expressions in ymlJosh Morman2019-08-0220-4670/+1097
| | | | | | | | Without the extra list expressions, grc passes map objects into the BER curve gen hier blocks, instead of lists of the enc/dec objects, which is what it is expecting update polar and tpc ber curve gen examples
* Fix for misc. documentation + trivial typosluz.paz2019-07-173-3/+3
| | | | | | | | | | | | | Found via `codespell -q 3 -L ans,sinc,hist,ist,ith,uint,fo -S ./volk` Fix typos in gnuradio-runtime/ Fix typos in gr-digital/ Fix typos in gr-qtgui/ Fix typos in gr-channels/ Fix typos in grc/ Fix typos gr-filter/ Fix typos in gr-uhd/ Fix typos in gr-blocks/ Fix typos in gr-fec/
* grc: add busports back into 3.8Josh Morman2019-07-156-2424/+510
| | | | | | | | Bus ports had not been added back in since the refactor of grc Hopefully this fully enables busports though there are still some issues with the gr-fec flowgraphs Fixes #2277
* grc: introduce flag 'show_id' to show block idBastian Bloessl2019-06-2922-0/+22
| | | | useful for variable and parameter blocks, but maybe others too
* cmake: Update to modern CMake usageAndrej Rode2019-03-049-188/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes using target based setting of includes and link libraries. This will transitively add the includes and linking flags to dependent targets. This is still a work in progress since only the dynamic libraries have been touched and not all of include_directories directives are gone yet. cmake: remove GR_INCLUDE_SUBDIRECTORY macro Previously this macro was used to inject subdirectories in the current CMake namespace. This is generally undesired and pollutes the current context. previously GNU Radio CMake had a non-default option ENABLE_STATIC_LIBS to build both, shared libraries and static libraries. This seems to be a construction taken over from autotools and serves no purpuose in CMake and complicates the library building. cmake: remove GR_LIBTOOL and la generation support This looks like it was primarily used to support projects using autotools, but comments state that the generated .la files aren't compatible with autotools anyway. cmake: Bump required CMake version to 3.8 UseSWIG cmake uses syntax which requires at least CMake 3.8 and is non-trivial to change
* fec: build reed solomon object with fPICAndrej Rode2019-03-041-0/+6
|
* fec: Suppress warnings in Reed-Solomon test codeRon Economos2019-01-142-5/+5
| | | | RS test codes were using random() instead of rand(), which is now fixed.
* includes: use quotes for local includesAndrej Rode2019-01-074-6/+6
|
* examples: update gr-fec examples for 3.8.Johannes Demel2019-01-0519-38385/+9558
| | | | The examples in gr-fec have some small issues e.g. integer vs. float division bevahior. This commit fixes those issues in those examples.
* grc: fix gr-fec GRC definitions.Johannes Demel2018-12-316-17/+13
| | | | | | | | Several FECAPI blocks have issues to generate correct Python code. These problems should be fixed now. Issues with the option persist, though. Those must be handled in the encoder/decoder block definitions.
* Fix the POLAR Encoder DefinitionHåkon Vågsether2018-12-261-3/+1
| | | | by changing the is_packed parameter from enum to bool
* cmake: Only go into grc/ subdirs when ENABLE_GRC=ONMartin Braun2018-12-171-1/+3
|
* Fix compiler warnings about unsigned / signed comparisonsVolker Schroer2018-11-241-1/+1
|
* gr-fec: Improve handeling of failure opening alist fileBrennan Ashton2018-11-151-1/+3
|