Skip to content

Instantly share code, notes, and snippets.

@daniestevez
Created February 6, 2025 12:12

Revisions

  1. daniestevez created this gist Feb 6, 2025.
    294 changes: 294 additions & 0 deletions hydra_t.grc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,294 @@
    options:
    parameters:
    author: Daniel Estevez
    catch_exceptions: 'True'
    category: '[GRC Hier Blocks]'
    cmake_opt: ''
    comment: ''
    copyright: ''
    description: ''
    gen_cmake: 'On'
    gen_linking: dynamic
    generate_options: qt_gui
    hier_block_src_path: '.:'
    id: hydra_t
    max_nouts: '0'
    output_language: python
    placement: (0,0)
    qt_qss_theme: ''
    realtime_scheduling: ''
    run: 'True'
    run_command: '{python} -u {filename}'
    run_options: prompt
    sizing_mode: fixed
    thread_safe_setters: ''
    title: HYDRA-T decoder
    window_size: (1000,1000)
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [8, 8]
    rotation: 0
    state: enabled

    blocks:
    - name: freq
    id: variable
    parameters:
    comment: ''
    value: 1.65e3
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [312, 12.0]
    rotation: 0
    state: enabled
    - name: samp_rate
    id: variable
    parameters:
    comment: ''
    value: '64000'
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [200, 12]
    rotation: 0
    state: enabled
    - name: blocks_message_debug_0
    id: blocks_message_debug
    parameters:
    affinity: ''
    alias: ''
    comment: ''
    en_uvec: 'True'
    log_level: info
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [1104, 208.0]
    rotation: 0
    state: enabled
    - name: blocks_null_sink_0
    id: blocks_null_sink
    parameters:
    affinity: ''
    alias: ''
    bus_structure_sink: '[[0,],]'
    comment: ''
    num_inputs: '1'
    type: float
    vlen: '1'
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [296, 272.0]
    rotation: 0
    state: enabled
    - name: blocks_rotator_cc_0
    id: blocks_rotator_cc
    parameters:
    affinity: ''
    alias: ''
    comment: ''
    maxoutbuf: '0'
    minoutbuf: '0'
    phase_inc: -2 * np.pi * freq / samp_rate
    tag_inc_update: 'False'
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [592, 176.0]
    rotation: 0
    state: enabled
    - name: blocks_throttle2_0
    id: blocks_throttle2
    parameters:
    affinity: ''
    alias: ''
    comment: ''
    ignoretag: 'True'
    limit: auto
    maximum: '0.1'
    maxoutbuf: '0'
    minoutbuf: '0'
    samples_per_second: samp_rate
    type: float
    vlen: '1'
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [280, 164.0]
    rotation: 0
    state: enabled
    - name: blocks_wavfile_source_0
    id: blocks_wavfile_source
    parameters:
    affinity: ''
    alias: ''
    comment: ''
    file: Unknown_20250203_437783617Hz_AF.wav
    maxoutbuf: '0'
    minoutbuf: '0'
    nchan: '2'
    repeat: 'True'
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [40, 176.0]
    rotation: 0
    state: enabled
    - name: hilbert_fc_0
    id: hilbert_fc
    parameters:
    affinity: ''
    alias: ''
    beta: '6.76'
    comment: ''
    maxoutbuf: '0'
    minoutbuf: '0'
    num_taps: '65'
    win: window.WIN_HAMMING
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [448, 172.0]
    rotation: 0
    state: enabled
    - name: import_0
    id: import
    parameters:
    alias: ''
    comment: ''
    imports: import numpy as np
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [416, 12.0]
    rotation: 0
    state: enabled
    - name: qtgui_freq_sink_x_0_0
    id: qtgui_freq_sink_x
    parameters:
    affinity: ''
    alias: ''
    alpha1: '1.0'
    alpha10: '1.0'
    alpha2: '1.0'
    alpha3: '1.0'
    alpha4: '1.0'
    alpha5: '1.0'
    alpha6: '1.0'
    alpha7: '1.0'
    alpha8: '1.0'
    alpha9: '1.0'
    autoscale: 'False'
    average: '1.0'
    axislabels: 'True'
    bw: samp_rate
    color1: '"blue"'
    color10: '"dark blue"'
    color2: '"red"'
    color3: '"green"'
    color4: '"black"'
    color5: '"cyan"'
    color6: '"magenta"'
    color7: '"yellow"'
    color8: '"dark red"'
    color9: '"dark green"'
    comment: ''
    ctrlpanel: 'False'
    fc: '0'
    fftsize: '4096'
    freqhalf: 'True'
    grid: 'False'
    gui_hint: ''
    label: Relative Gain
    label1: ''
    label10: ''''''
    label2: ''''''
    label3: ''''''
    label4: ''''''
    label5: ''''''
    label6: ''''''
    label7: ''''''
    label8: ''''''
    label9: ''''''
    legend: 'True'
    maxoutbuf: '0'
    minoutbuf: '0'
    name: '""'
    nconnections: '1'
    norm_window: 'False'
    showports: 'False'
    tr_chan: '0'
    tr_level: '0.0'
    tr_mode: qtgui.TRIG_MODE_FREE
    tr_tag: '""'
    type: complex
    units: dB
    update_time: '0.10'
    width1: '1'
    width10: '1'
    width2: '1'
    width3: '1'
    width4: '1'
    width5: '1'
    width6: '1'
    width7: '1'
    width8: '1'
    width9: '1'
    wintype: window.WIN_BLACKMAN_hARRIS
    ymax: '10'
    ymin: '-140'
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [848, 100.0]
    rotation: 0
    state: enabled
    - name: satellites_satellite_decoder_0
    id: satellites_satellite_decoder
    parameters:
    affinity: ''
    alias: ''
    comment: ''
    definition: name
    file: ''
    iq: 'True'
    maxoutbuf: '0'
    minoutbuf: '0'
    name: HADES-R
    norad: '0'
    options: '""'
    samp_rate: samp_rate
    states:
    bus_sink: false
    bus_source: false
    bus_structure: null
    coordinate: [848, 220.0]
    rotation: 0
    state: enabled

    connections:
    - [blocks_rotator_cc_0, '0', qtgui_freq_sink_x_0_0, '0']
    - [blocks_rotator_cc_0, '0', satellites_satellite_decoder_0, '0']
    - [blocks_throttle2_0, '0', hilbert_fc_0, '0']
    - [blocks_wavfile_source_0, '0', blocks_throttle2_0, '0']
    - [blocks_wavfile_source_0, '1', blocks_null_sink_0, '0']
    - [hilbert_fc_0, '0', blocks_rotator_cc_0, '0']
    - [satellites_satellite_decoder_0, out, blocks_message_debug_0, print]

    metadata:
    file_format: 1
    grc_version: 3.10.11.0