66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
id: fosphor_qt_sink_c
|
|
label: fosphor sink (Qt)
|
|
|
|
parameters:
|
|
- id: wintype
|
|
label: Window Type
|
|
dtype: enum
|
|
default: window.WIN_BLACKMAN_hARRIS
|
|
options: [window.WIN_BLACKMAN_hARRIS, window.WIN_HAMMING, window.WIN_HANN, window.WIN_BLACKMAN, window.WIN_RECTANGULAR, window.WIN_KAISER, window.WIN_FLATTOP]
|
|
option_labels: [Blackman-harris, Hamming, Hann, Blackman, Rectangular, Kaiser, Flat-top]
|
|
hide: part
|
|
- id: freq_center
|
|
label: Center Frequency (Hz)
|
|
dtype: real
|
|
default: '0'
|
|
- id: freq_span
|
|
label: span (Hz)
|
|
dtype: real
|
|
default: samp_rate
|
|
- id: gui_hint
|
|
label: GUI Hint
|
|
dtype: gui_hint
|
|
hide: part
|
|
|
|
inputs:
|
|
- domain: stream
|
|
dtype: complex
|
|
|
|
outputs:
|
|
- domain: message
|
|
id: freq
|
|
optional: true
|
|
|
|
templates:
|
|
imports: |-
|
|
from PyQt5 import Qt
|
|
import sip
|
|
from gnuradio import fosphor
|
|
from gnuradio.fft import window
|
|
make: |-
|
|
<%
|
|
win = 'self._%s_win' % id
|
|
%>\
|
|
fosphor.qt_sink_c()
|
|
self.${id}.set_fft_window(${wintype})
|
|
self.${id}.set_frequency_range(${freq_center}, ${freq_span})
|
|
${win} = sip.wrapinstance(self.${id}.pyqwidget(), Qt.QWidget)
|
|
${gui_hint() % win}
|
|
callbacks:
|
|
- set_fft_window(${wintype})
|
|
- set_frequency_range(${freq_center}, ${freq_span})
|
|
|
|
documentation: |-
|
|
Key Bindings
|
|
============
|
|
z: toggle zoom mode
|
|
a/d: move zoom frequency down/up
|
|
s/w: adjust zoom width
|
|
q/e: adjust screen split between waterfall and fft
|
|
space: pause display
|
|
|
|
(left)/(right) adjust dB/div
|
|
(up)/(down) adjust reference level
|
|
|
|
file_format: 1
|