summaryrefslogtreecommitdiff
path: root/gr-digital/examples
Commit message (Collapse)AuthorAgeFilesLines
* digital: pep8 formattingJosh Morman2021-11-2415-238/+302
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* gr-digital: Repair packet based example flow graphs.Ron Economos2021-10-206-313/+400
| | | | Signed-off-by: Ron Economos <w6rz@comcast.net>
* examples: Repair all examples affected by commit 91e9ddf.Ron Economos2021-10-111-4/+4
| | | | | | Replace all occurrences of empty minoutbuf and maxoutbuf with 0. Signed-off-by: Ron Economos <w6rz@comcast.net>
* gr-digital: Simple header payload demux exampleSolomon Tan2021-06-211-0/+684
| | | | | | | | | This commit adds a simple example combining the header/payload block with the formatter_crc example. Its purpose is to show a simpler, more beginner friendly example for the header/payload block compared to the current ofdm hier block used as an example. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* gr-digital: Replace CMA Equalizer in MPSK ExampleSolomon Tan2021-05-191-24/+62
| | | | | | | | | | | | | | In commit 65bd288, the `digital_cma_equalizer_cc` block was removed. However, it is still left in the MPSK example flowgraph. This commit replaces the deprecated cma equalizer with a linear equalizer and an adaptive algorithm as those are indicated in the gnuradio wiki to be the appropriate replacements. I have kept the parameters between the two sets as similar as possible by ensuring the parameters with the same ids have the same values. The only difference is `Modulus`. Amended `Modulus` from 1 to 4. A note was also added to indicate the change from the CMA Equalizer to the Linear Equalizer. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* gr-blocks: remove pdu blocksJacob Gilbert2021-03-1819-138/+138
| | | | | | | | | | | | | | | | | | | | | | | | The following have been moved to the new gr::pdu module or to gr::network and are no longer needed in gr::blocks: - pdu (noblock) - pdu_filter block - pdu_remove block - pdu_set block - pdu_to_tagged_stream block - random_pdu block - socket_pdu block - stream_pdu_base (noblock) - tagged_stream_to_pdu block - tcp_connection (noblock) - tuntap_pdu block The digital and FEC modules had a large number of references to the PDU blocks that were moved from gr-blocks to gr-pdu, this updates these changes in example flowgraphs and a few python files. The usage-manual update will be propagated to the wiki so that future exports will remain up to date. Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* gr-digital: Install mpsk_stage6.grc example.Ron Economos2021-03-131-0/+1
| | | | Signed-off-by: Ron Economos <w6rz@comcast.net>
* numpy: Fix fftpack referencesChristophe Seguinot2021-02-181-4/+1
| | | | Signed-off-by: Christophe Seguinot <christophe.seguinot@univ-lille.fr>
* digital: Modified OFDM example to utilize the Packet Header GeneratorTim Huggins2021-01-141-72/+52
| | | | Signed-off-by: Tim Huggins <huggins.timothy@gmail.com>
* gr-digital: Fixup GUI hints for example_corr_estNick Østergaard2021-01-121-34/+127
| | | | | | | | | | | | The tab control were missing a proper GUI hint and was just placed in the bottom corner. Add GUI hint to it and adjust the amount of rows the other time sink consumes to let the sliders not consume that much screen real estate. Slightly align blocks to look nicer. Signed-off-by: Nick Østergaard <oe.nick@gmail.com>
* gr-digital: Change threshold method of example_corr_estNick Østergaard2021-01-121-1/+1
| | | | | | | | In example_corr_est switch to dynamic threshold instead of absolute. This make the example do something at start up instead of just flatlining and it seems like the example becomes more interesting. Signed-off-by: Nick Østergaard <oe.nick@gmail.com>
* replace fft.window.WIN_ with window.win_ and include in grc default importJosh Morman2020-12-1815-22/+22
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* global replace of firdes.WIN_ with fft.window.WIN_Josh Morman2020-12-1815-22/+22
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* digital/examples/gen_whitener: import cleanupMarcus Müller2020-12-171-2/+1
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* digital: add constellation_encoder blockJosh Morman2020-11-161-0/+420
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-0315-38/+0
| | | | | | | | | | | | | | | | 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
* correct example flowgraphduggabe2020-07-091-30/+31
|
* Fixed two GUI options that had overlapping IDsOliver2020-06-241-1/+1
|
* Fixed two GUI options that had overlapping IDsOliver2020-06-241-1/+1
|
* docs: add and revise flowgraphs for qt_gui examplesduggabe2020-06-111-0/+954
| | | | | | | * add and revise flowgraphs for qt_gui examples * revise test_qtgui_msg.grc * add mpsk_stage6.grc to gr-digital/examples
* digital: restructure equalizers and add dfe (#3306)mormj2020-04-093-0/+2439
| | | | | | | | | | | | | | | | | | * digital: restructure equalizers and add dfe This commit restructures the linear equalizer to have a separate specifiable adaptive algorithm. Generally this works the same as the previous LMS and CMA decision directed equalizers, but also adds the ability to equalize using training sequences as well. Also, a Decision Feedback Equalizer structure is added * digital: more const in equalizers * digital: equalizers - more safety based on review * digital: dfe - use deque instead of vector for decision_history * digital - equalizers, further cleanup
* digital: test_corr_est example - missing parenthesisJosh Morman2020-04-011-35/+171
| | | | | | | Previous version missed something in the transition to yaml, namely parenthesis around the lengths list in the stream mux. Now the example runs out of the box
* digital: Re-convert GRC examplesNick Østergaard2020-03-291-2/+110
| | | | | This is made by opening the grc file in gnuradio-companion and saving a copy as on the same file.
* Update license header to SPDX formatdevnulling2020-01-2717-223/+19
|
* examples: fixup cmake files to include all examplesdevnulling2020-01-221-7/+11
|
* digital: fix chooser default value for constsoft_decoder exampleJosh Morman2020-01-213-50/+161
| | | | | | digital: fix chooser default value for symbol_sync_complex example digital: fix chooser default value for symbol_sync_float example
* digital: ofdm: Allow multiple CP lengths for cyclic prefixerMaximilian Stiefel2020-01-081-11/+144
| | | | | | | | This allows to specify multiple CP lengths that can be used one after another, for example for LTE modulators. - Improve sanity checking - Maintains old API
* YAML: Convert Qt/digital GRC examples to YAMLJohannes Demel2019-07-231-2/+122
| | | | | Some examples in digital and Qt were forgotten. These are now converted to YAML as well.
* digital: Fix GRC examples for YAML formatJohannes Demel2019-07-238-16249/+5369
| | | | | | | | | | | | | | | | | | | | With this commit the remaining GRC examples that were not yet converted to YAML are converted too. GRC did not open these examples because it threw an error. > Error: (ValueError("invalid literal for int() with base 10: > 'digital.packet_utils.default_access_code'",), '% if > int(eval(access_code))==0:\nself.${id} = ${id} = > digital.header_format_default(digital.packet_utils.default_access_code,\\\n${threshold}, > ${bps})\n% else:\nself.${id} = ${id} = > digital.header_format_default(${access_code},\\\n${threshold}, ${bps})\n% endif') This could be fixed by manually editing the corresponding GRC files. All uses of `digital.packet_utils.default_access_code` are replaced with a string. This allows GRC to open these files. Still, GRC will hang in case `digital.packet_utils.default_access_code` is used again. This hints at a bug with the `default_access_code` code.
* Corrected framebits in dec_hdr block.Eric Johnson2019-07-172-2/+2
| | | | Correction based upon packet_loopback_hier.grc.
* digital: Move enum tm_type from digital.core_est_cc to digitalVolker Schroer2019-06-184-4/+4
|
* gitignore: ignore autogen files in example foldersJohannes Demel2019-03-241-0/+5
| | | | | This commit adds `.gitignore` files to some example folders. This helps to keep auto generated files out of commits.
* digital: Convert GRC examples to YAML formatJohannes Demel2019-03-1717-39358/+11452
| | | | | This commit converts the examples in `gr-digital/packet` to the new YAML format. This conversion is tracked in #2285.
* digital: Convert GRC examples to YAML formatJohannes Demel2019-03-173-6010/+1870
| | | | | | | This commit converts the examples in `gr-digital/ofdm` to the new YAML format. Also, multiple fixes to GRC files are made. These fix issues with outdated hide attributes. This conversion is tracked in #2285.
* digital: Convert GRC examples to YAML formatJohannes Demel2019-01-276-13903/+4057
| | | | | | | | This commit converts the examples in `gr-digital` to the new YAML format. This conversion is tracked in #2285. Only the flowgraphs in `examples` and `examples/demod` are updated. Some flowgraphs can't be opened due to some 'id' error.
* runtime: gr_threading clutch obsolete; remove it and its usageMarcus Müller2018-11-121-3/+3
| | | | | | | | We essentially monkeypatched Python's `threading` module inelegantly to get around shortcomings in Python 2.3 and 2.4. Since support for these versions is long gone: removal of this clutch and its usage.
* replace scipy by numpy in GRC examplesMarcus Müller2018-11-021-3/+3
|
* Replace scipy/pylab where numpy/pyplot is sufficientMarcus Müller2018-11-025-68/+53
| | | | | | | | | This should reduce the number of times users are prompted to install pylab || scipy when they'd actually get away with functionality fully contained in numpy and matplotlib. This only solves the obvious cases. There's some usage of `pylab.mlab` that would need more than 20s of consideration.
* Update links to https://www.gnuradio.orgClayton Smith2018-10-281-1/+1
|
* Convert tabs to spaces and fix syntax errors.Clayton Smith2018-10-043-26/+26
|
* Remove all examples depending on and references to message_s{ource,ink}Marcus Müller2018-08-279-1415/+1
| | | | | | | | | Fixes #1024. Note that this only removes non-functional code which should have been removed when message_s{ink,ource} were removed. This also means that we'll need new narrowband examples (#1958).
* remove deleted mpsk_demod.grc from install listMarcus Müller2018-08-251-1/+0
|
* Add deprecation warning to narrowband examples using type_1_(de)mods()Marcus Müller2018-08-237-0/+21
| | | | In accordance to #1956.
* Delete deprecated (q)d/qpsk and qam python hier blocks.Marcus Müller2018-08-231-1134/+0
| | | | | | | | | | | | | | Fixes #1081. These blocks were just overly specific wrappers for RRC + constellation decoders/encoders. With the nice constellation objects, no need to keep these around. Note that they are still in use as *possible* constellations (runtime-detected) in examples like narrowband/tunnel.py, but reducing these in functionality is inavoidable at this point. Progress of updating them is tracked in #1956.
* python: replace unfunctional old_div with functional codeAndrej Rode2018-08-171-3/+2
| | | | | | | | | | a previous change to py3k introduced synactically incorrect `old_div` function calls. A replacement with `//` and `/` where applicable is more appropriate. Eventually `from __future__ import division` needs to be added as well to have the "real" division also for integer values in python closes #1902
* Merge branch 'python3_fix' into nextAndrej Rode2018-06-2423-1480/+1762
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Merge branch 'next' into python3Johnathan Corgan2017-10-051-0/+1
| |\
| * \ Merge branch 'next' into python3Johnathan Corgan2017-09-222-1075/+396
| |\ \
| * \ \ Merge branch 'next' into python3Johnathan Corgan2017-08-271-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: volk
| * \ \ \ Merge branch 'next' into python3Johnathan Corgan2017-08-143-10/+149
| |\ \ \ \