diff options
author | Volker Schroer <3470424+dl1ksv@users.noreply.github.com> | 2019-04-29 12:49:15 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-06-15 17:24:18 -0700 |
commit | fe5f4ae9351a4c9bea08be1171814c2b23a3ee85 (patch) | |
tree | 11511836d7a87986b851639247da45f442c13229 | |
parent | 82251fad9cf3314124d4a91e97a35f6b0f78e5bb (diff) |
analog: Make phase parameter of analog sig source available in GRC
-rw-r--r-- | gr-analog/grc/analog_sig_source_x.block.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gr-analog/grc/analog_sig_source_x.block.yml b/gr-analog/grc/analog_sig_source_x.block.yml index 02bb791b56..ebd55c2df8 100644 --- a/gr-analog/grc/analog_sig_source_x.block.yml +++ b/gr-analog/grc/analog_sig_source_x.block.yml @@ -34,6 +34,10 @@ parameters: label: Offset dtype: ${ type.offset_type } default: '0' +- id: phase + label: Initial Phase (Radians) + dtype: real + default: '0' inputs: - domain: message @@ -47,24 +51,26 @@ outputs: templates: imports: from gnuradio import analog make: analog.sig_source_${type.fcn}(${samp_rate}, ${waveform}, ${freq}, ${amp}, - ${offset}) + ${offset}, ${phase}) callbacks: - set_sampling_freq(${samp_rate}) - set_waveform(${waveform}) - set_frequency(${freq}) - set_amplitude(${amp}) - set_offset(${offset}) + - set_phase(${phase}) cpp_templates: includes: ['#include <gnuradio/analog/sig_source.h>'] declarations: 'analog::sig_source_${type.fcn}::sptr ${id};' - make: 'this->${id} = analog::sig_source_${type.fcn}::make(${samp_rate}, ${waveform}, ${freq}, ${amp}, ${offset});' + make: 'this->${id} = analog::sig_source_${type.fcn}::make(${samp_rate}, ${waveform}, ${freq}, ${amp}, ${offset},${phase});' callbacks: - set_sampling_freq(${samp_rate}) - set_waveform(${waveform}) - set_frequency(${freq}) - set_amplitude(${amp}) - set_offset(${offset}) + - set_phase(${phase}) link: ['gnuradio-analog'] translations: analog\.: 'analog::' |