Skip to content

Commit

Permalink
Merge pull request #32 from AsriFox/fix-interp-method
Browse files Browse the repository at this point in the history
Fix Symbol Sync interpolation method not changing in GRC
  • Loading branch information
igorauad committed Dec 19, 2023
2 parents c8f7312 + 11031ec commit 81b5490
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions grc/dvbs2rx_symbol_sync_cc.block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ category: '[Core]/Digital Television/DVB-S2'

templates:
imports: from gnuradio import dvbs2rx
make: dvbs2rx.symbol_sync_cc(${sps}, ${loop_bw}, ${damping_factor}, ${rolloff}, ${rrc_delay}, ${n_subfilt}, ${interp_method})
make: dvbs2rx.symbol_sync_cc(${sps}, ${loop_bw}, ${damping_factor}, ${rolloff}, ${rrc_delay}, ${n_subfilt}, ${interp_method.val})

parameters:
- id: sps
Expand All @@ -27,18 +27,20 @@ parameters:
label: RRC Filter Delay
dtype: int
default: 5
hide: ${'none' if interp_method == 0 else 'all'}
hide: ${interp_method.hide}
- id: n_subfilt
label: Polyphase Subfilters
dtype: int
default: 128
hide: ${'none' if interp_method == 0 else 'all'}
hide: ${interp_method.hide}
- id: interp_method
label: Interpolation Method
dtype: enum
options: [0, 1, 2, 3]
options: [INTERP_POLYPHASE, INTERP_LINEAR, INTERP_QUADRATIC, INTERP_CUBIC]
option_labels: ["Polyphase", "Linear", "Quadratic", "Cubic"]
default: 0
option_attributes:
val: [0, 1, 2, 3]
hide: [none, all, all, all]

inputs:
- label: in
Expand Down

0 comments on commit 81b5490

Please sign in to comment.