Skip to content

Commit

Permalink
analog: qa_sig_source use cmd port
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Morman <[email protected]>
  • Loading branch information
mormj committed Apr 21, 2021
1 parent 63d3883 commit dc4399c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gr-analog/python/analog/qa_sig_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ def test_freq_msg(self): # deprecated but still tested
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)
Expand All @@ -220,7 +224,7 @@ def test_cmd_msg(self):
offset = -1.0

src._post(
pmt.to_pmt('freq'),
pmt.to_pmt('cmd'),
pmt.to_pmt({
"freq": frequency,
"ampl": amplitude,
Expand Down

0 comments on commit dc4399c

Please sign in to comment.