id: radio_astro_systemp_calibration
label: systemp_calibration
category: '[radio_astro]'

templates:
  imports: from gnuradio import radio_astro
  make: radio_astro.systemp_calibration(${vec_length}, ${collect}, ${samp_rate}, ${freq}, ${prefix}, ${spectrumcapture_toggle}, ${clip_toggle}, ${az}, ${elev}, ${location})
  callbacks:
    - set_collect(${collect})
    - set_spectrumcapture_toggle(${spectrumcapture_toggle})
    - set_clip_toggle(${clip_toggle})
    - set_az(${az})
    - set_elev(${elev})
    - set_location(${location})


#  Make one 'parameters' list entry for every parameter you want settable from the GUI.
#     Keys include:
#     * id (makes the value accessible as \$keyname, e.g. in the make entry)
#     * label (label shown in the GUI)
#     * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...)
parameters:
- id: vec_length
  label: vec_length
  dtype: int
- id: collect
  label: collect
  dtype: string
- id: samp_rate
  label: samp_rate
  dtype: float
- id: freq
  label: freq
  dtype: float
- id: prefix
  label: prefix
  dtype: string
- id: spectrumcapture_toggle
  label: spectrumcapture_toggle
  dtype: string
- id: clip_toggle
  label: clip_toggle
  dtype: string
- id: az
  label: az
  dtype: string
- id: elev
  label: elev
  dtype: string
- id: location
  label: location
  dtype: string


#  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: ${vec_length}

outputs:
- label: spectrum
  domain: stream
  dtype: float
  vlen: ${vec_length}
- label: gain
  domain: stream
  dtype: float
  vlen: ${vec_length}
- label: tsys
  dtype: float
  vlen: ${vec_length}

#  'file_format' specifies the version of the GRC yml format used in the file
#  and should usually not be changed.
file_format: 1
