diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-07-14 15:10:19 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-07-14 15:10:19 -0400 |
commit | 1fb307d852a5e5ca156a2f85a8a9e87f4c0820af (patch) | |
tree | bdf32806637bf6373a13d32d9cbd1324c121f702 /gr-uhd/examples/python/freq_hopping.py | |
parent | d83f0377a7c1e3e3af33d24a6cad5eeb4b7e8ba0 (diff) | |
parent | 12523cdb3218be85565c3c3bcb49d113e6bac518 (diff) |
Merge remote-tracking branch 'mbant/uhd/msg_format' into qt_the_things
Diffstat (limited to 'gr-uhd/examples/python/freq_hopping.py')
-rwxr-xr-x | gr-uhd/examples/python/freq_hopping.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-uhd/examples/python/freq_hopping.py b/gr-uhd/examples/python/freq_hopping.py index 903b0b23d4..5da5efa241 100755 --- a/gr-uhd/examples/python/freq_hopping.py +++ b/gr-uhd/examples/python/freq_hopping.py @@ -105,7 +105,9 @@ class FrequencyHopperSrc(gr.hier_block2): gain_tag.key = pmt.string_to_symbol('tx_command') gain_tag.value = pmt.cons( pmt.intern("gain"), - pmt.to_pmt((0, tx_gain)) + # These are both valid: + #pmt.from_double(tx_gain) + pmt.cons(pmt.to_pmt(0), pmt.to_pmt(tx_gain)) ) tag_list = [gain_tag,] for i in xrange(n_bursts): @@ -114,7 +116,7 @@ class FrequencyHopperSrc(gr.hier_block2): if i > 0 and post_tuning: tune_tag.offset -= 1 # Move it to last sample of previous burst tune_tag.key = pmt.string_to_symbol('tx_freq') - tune_tag.value = pmt.to_pmt((0, self.hop_sequence[i])) + tune_tag.value = pmt.to_pmt(self.hop_sequence[i]) tag_list.append(tune_tag) length_tag = gr.tag_t() length_tag.offset = i * burst_length |