diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2021-03-25 11:27:53 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-04-21 14:02:57 -0400 |
commit | dc4399c76b8deee7ed4f7558073711023b52332b (patch) | |
tree | d7ad65259f84877cffcfb3f49f3bb9e9d2e50ab1 /gr-analog | |
parent | 63d38839b44d9fac8929b3f7b9966a0ceed95d41 (diff) |
analog: qa_sig_source use cmd port
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
Diffstat (limited to 'gr-analog')
-rw-r--r-- | gr-analog/python/analog/qa_sig_source.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gr-analog/python/analog/qa_sig_source.py b/gr-analog/python/analog/qa_sig_source.py index 977a17d372..a47c958b38 100644 --- a/gr-analog/python/analog/qa_sig_source.py +++ b/gr-analog/python/analog/qa_sig_source.py @@ -203,7 +203,11 @@ class test_sig_source(gr_unittest.TestCase): self.assertAlmostEqual(src.frequency(), 1.0) frequency = 3.0 - src._post(pmt.to_pmt('freq'), pmt.from_double(frequency)) + src._post( + pmt.to_pmt('cmd'), + pmt.to_pmt({ + "freq": frequency + })) self.tb.run() self.assertAlmostEqual(src.frequency(), frequency) @@ -220,7 +224,7 @@ class test_sig_source(gr_unittest.TestCase): offset = -1.0 src._post( - pmt.to_pmt('freq'), + pmt.to_pmt('cmd'), pmt.to_pmt({ "freq": frequency, "ampl": amplitude, |