Range Limit Block #12
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added the Range Limit Block, which allows you to limit the range of data collected by the radar in meters, as well as add a multiple of the waveform length to the end of the range for matched filtering.
Features:
Block Parameters:
Minimum Range: Minimum range of data in meters
Maximum Range: Maximum range of data in meters
Use Absolute Maximum Range: If set to true, ignores the maximum range parameter and gets all radar data from the minimum to the end of the data.
Multiplier: Adds a multiple of the waveform length to the end of the data, set to 0 to disable.
Testing:

With given parameters, we expect that the Linear FM source will output a PDU size of 1600 bytes (200 complex floats * 8 bytes per complex float) and the range limit will output a PDU size of 432 bytes (54 complex floats * 8 bytes per complex float). This is seen in the results, and the time sinks show the limited waveform.
Linear FM PDU:



Range Limit PDU:
Time Sink Output:
Further testing on radar data may be needed.
The block has successfully been tested on a fresh install of Ubuntu 22.04 and GNURadio.