56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
id: m17_m17_decoder
|
|
label: M17 Decoder
|
|
category: '[M17]'
|
|
|
|
parameters:
|
|
- id: debug_data
|
|
label: Debug Data
|
|
dtype: bool
|
|
default: 'False'
|
|
options: ['True', 'False']
|
|
- id: debug_ctrl
|
|
label: Debug Control
|
|
dtype: bool
|
|
default: 'False'
|
|
options: ['True', 'False']
|
|
- id: threshold
|
|
label: Threshold
|
|
dtype: float
|
|
default: 2.0
|
|
|
|
templates:
|
|
imports: from gnuradio import m17
|
|
make: m17.m17_decoder(${debug_data},${debug_ctrl},${threshold})
|
|
callbacks:
|
|
- set_debug_data(${debug_data})
|
|
- set_debug_ctrl(${debug_ctrl})
|
|
- set_threshold(${threshold})
|
|
|
|
# Make one 'inputs' list entry per input and one 'outputs' list entry per output.
|
|
# Keys include:
|
|
# * label (an identifier for the GUI)
|
|
# * domain (optional - stream or message. Default is stream)
|
|
# * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...)
|
|
# * vlen (optional - data stream vector length. Default is 1)
|
|
# * optional (optional - set to 1 for optional inputs. Default is 0)
|
|
inputs:
|
|
- label: in
|
|
domain: stream
|
|
dtype: float
|
|
vlen: 1
|
|
optional: 0
|
|
|
|
outputs:
|
|
- label: out
|
|
domain: stream
|
|
dtype: byte
|
|
vlen: 1
|
|
optional: 0
|
|
|
|
documentation: |-
|
|
The decoder block accepts two boolean debugging flags defining which messages are displayed in the console when messages are received, and a threshold parameter. The threshold defines a value below which the incoming message is detected. It is based on the Euclidean distance (L^2 norm) between the received symbol stream and protocol-defined syncronization patterns. Ideally, the distance would reach 0.0 for an ideal match. A default threshold value of 2.0 is selected.
|
|
|
|
# 'file_format' specifies the version of the GRC yml format used in the file
|
|
# and should usually not be changed.
|
|
file_format: 1
|